void XimServer::reloadConfigs() { #if 1 uim_prop_reload_configs(); reload_uim(0); #else reload_uim(1); #endif // Updated global IM of XimServer char *im = uim_scm_symbol_value_str("default-im-name"); if (im) set_im(im); free(im); #if HAVE_XFT_UTF8_STRING update_default_xftfont(); #endif if (!uim_scm_symbol_value_bool("bridge-show-input-state?")) { Canddisp *disp = canddisp_singleton(); disp->hide_caret_state(); } check_candwin_style(); check_candwin_pos_type(); }
static void helper_toolbar_parse_helper_str(GtkWidget *widget, gchar *str) { gchar **lines; lines = g_strsplit(str, "\n", 0); if (lines && lines[0]) { if (!strcmp("prop_list_update", lines[0])) helper_toolbar_prop_list_update(widget, lines); else if (!strcmp("custom_reload_notify", lines[0])) { uim_prop_reload_configs(); helper_toolbar_check_custom(); reset_icon(); } g_strfreev(lines); } }