*/
void preferences_response_cb(GtkDialog *dialog, gint response, gpointer user_data) {  int i;  gboolean valid;  GjitenDicfile *dicfile;	gchar *kanjidic_path = NULL;	gchar *kanjipad_path = NULL;  if (response == GTK_RESPONSE_CANCEL) {    preferences_exit();    return;  }  if (response == GTK_RESPONSE_HELP) {		gjiten_display_manual(dialog, NULL);		return;	}  //gconf_client_add_dir(gconf_client, "/apps/gjiten", GCONF_CLIENT_PRELOAD_NONE, NULL);  for (i = 0; i < KCFGNUM; i++) {     if (GTK_TOGGLE_BUTTON(checkb_prefs[i])->active) gjitenApp->conf->kdiccfg[i] = TRUE;    else gjitenApp->conf->kdiccfg[i] = FALSE;   }	kanjidic_path = g_strdup(gtk_entry_get_text(GTK_ENTRY(gnome_entry_gtk_entry(GNOME_ENTRY(entry_kanjidic)))));  if ((kanjidic_path != NULL) && strlen(kanjidic_path))  {    gjitenApp->conf->kanjidic->path = kanjidic_path;  }	kanjipad_path = g_strdup(gtk_entry_get_text(GTK_ENTRY(gnome_entry_gtk_entry(GNOME_ENTRY(entry_kanjipad)))));  if ((kanjipad_path != NULL) && strlen(kanjipad_path))  {    gjitenApp->conf->kanjipad = kanjipad_path;  }  gjitenApp->conf->bigwords = GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_largefont_worddic"))->active;  gjitenApp->conf->bigkanji = GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_largefont_kanjidic"))->active;  gjitenApp->conf->gdk_use_xft = GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_use_xft"))->active;  gjitenApp->conf->force_ja_JP = GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_lc_ctype"))->active;  gjitenApp->conf->force_language_c = GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_language_c"))->active;  gjitenApp->conf->envvar_override = GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_envvar_override"))->active;  gjitenApp->conf->normalfont = g_strdup(gtk_entry_get_text(GTK_ENTRY(GETWIDGET("entry_normal_font"))));  gjitenApp->conf->largefont = g_strdup(gtk_entry_get_text(GTK_ENTRY(GETWIDGET("entry_large_font"))));	gjitenApp->conf->search_kata_on_hira = GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_search_kata_on_hira"))->active;		gjitenApp->conf->search_hira_on_kata = GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_search_hira_on_kata"))->active;	  gjitenApp->conf->numofdics = 0;	dicutil_unload_dic();	dicfile_list_free(gjitenApp->conf->dicfile_list);	gjitenApp->conf->dicfile_list = NULL;  valid = gtk_tree_model_get_iter_first(model, &iter);  while (valid == TRUE) {		dicfile = g_new0(GjitenDicfile, 1);    gtk_tree_model_get(model, &iter, COL_DICPATH, &dicfile->path, COL_DICNAME, &dicfile->name, -1);		gjitenApp->conf->dicfile_list = g_slist_append(gjitenApp->conf->dicfile_list, dicfile);    valid = gtk_tree_model_iter_next(model, &iter);  }  conf_save(gjitenApp->conf);	if (dicfile_check_all(gjitenApp->conf->dicfile_list) == TRUE) {		worddic_update_dic_menu();	}	worddic_apply_fonts();	kanjidic_apply_fonts();	if (response == GTK_RESPONSE_OK) preferences_exit();}