checkb_prefs[tcol * 14 + trow] = gtk_check_button_new_with_label(strginfo[tcol * 14 + trow]);
checkb_prefs[tcol * 14 + trow] = gtk_check_button_new_with_label(_(strginfo[tcol * 14 + trow]));
void create_dialog_preferences() {	GtkWidget *button;	GtkWidget *tmpwidget;  GtkWidget *fontpicker;  GtkCellRenderer *renderer;  GtkTreeViewColumn *column;	GSList *dicfile_node;	GjitenDicfile *dicfile;  int trow = 0, tcol = 0;  if (dialog_preferences != NULL) return;  gladexml = glade_xml_new(GJITEN_DATADIR"/gjiten-settings.glade", "gjiten_settings", NULL);  dialog_preferences = GETWIDGET("gjiten_settings");	/* Set up the dicfile list */	treeview = GTK_TREE_VIEW(GETWIDGET("treeview_dics"));  model = GTK_TREE_MODEL(gtk_list_store_new(NUM_COLS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT));  gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);	gtk_tree_view_set_model(GTK_TREE_VIEW(treeview), model);	renderer = gtk_cell_renderer_text_new();  column = gtk_tree_view_column_new_with_attributes(_("Dictionary file path"), renderer, "text", COL_DICPATH, NULL);  gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column);	renderer = gtk_cell_renderer_text_new();  column = gtk_tree_view_column_new_with_attributes(_("Dictionary name"), renderer, "text", COL_DICNAME, NULL);  gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column);  g_signal_connect(G_OBJECT(treeview), "row_activated", G_CALLBACK(change_dict), NULL);	dicfile_node = gjitenApp->conf->dicfile_list;	while (dicfile_node != NULL) {		if (dicfile_node->data == NULL) break;		dicfile = dicfile_node->data;		gtk_list_store_append(GTK_LIST_STORE(model), &iter);    gtk_list_store_set(GTK_LIST_STORE(model), &iter, COL_DICPATH, dicfile->path, COL_DICNAME, dicfile->name, -1);		dicfile_node = g_slist_next(dicfile_node);	}  button = GETWIDGET("button_adddic");	g_signal_connect(G_OBJECT(button), "clicked", 									 G_CALLBACK(add_dict), treeview);  button = GETWIDGET("button_updic");	g_signal_connect(G_OBJECT(button), "clicked", 									 G_CALLBACK(up_dict), treeview);  button = GETWIDGET("button_downdic");	g_signal_connect(G_OBJECT(button), "clicked", 									 G_CALLBACK(down_dict), treeview);  button = GETWIDGET("button_removedic");	g_signal_connect(G_OBJECT(button), "clicked", 									 G_CALLBACK(remove_dict), treeview);  button = GETWIDGET("button_changedic");	g_signal_connect(G_OBJECT(button), "clicked", 									 G_CALLBACK(change_dict), treeview);	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_search_kata_on_hira")), gjitenApp->conf->search_kata_on_hira);		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_search_hira_on_kata")), gjitenApp->conf->search_hira_on_kata);			chdir(GJITEN_DICDIR);	//	gnome_file_entry_set_default_path(GNOME_FILE_ENTRY(tmpwidget), GJITEN_DICDIR);	tmpwidget = gnome_file_entry_new(NULL, _("Select KanjiDic"));	entry_kanjidic = gnome_file_entry_gnome_entry(GNOME_FILE_ENTRY(tmpwidget));	if (gjitenApp->conf->kanjidic && gjitenApp->conf->kanjidic->path) {		gnome_file_entry_set_filename(GNOME_FILE_ENTRY(tmpwidget), gjitenApp->conf->kanjidic->path);	}  gtk_box_pack_start(GTK_BOX(GETWIDGET("hbox_kanjidicfile")), tmpwidget, TRUE, TRUE, 0);  tmpwidget = GETWIDGET("table_kanji_info");  for (tcol = 0; (tcol * 14 + trow < KCFGNUM) || (tcol < 3); tcol++) {    for (trow = 0; (tcol * 14 + trow < KCFGNUM) && (trow < 14); trow++) {      checkb_prefs[tcol * 14 + trow] = gtk_check_button_new_with_label(strginfo[tcol * 14 + trow]);      gtk_widget_show(checkb_prefs[tcol * 14 + trow]);      gtk_table_attach(GTK_TABLE(tmpwidget), checkb_prefs[tcol * 14 + trow], tcol, tcol + 1, trow, trow + 1,											 (GtkAttachOptions) (GTK_FILL), (GtkAttachOptions) (0), 0, 0);      if (gjitenApp->conf->kdiccfg[tcol * 14 + trow] == TRUE) 				gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkb_prefs[tcol * 14 + trow]), TRUE);    }	}	fontpicker = gnome_font_picker_new();  gtk_widget_show(fontpicker);  if (gjitenApp->conf->normalfont != NULL) {    gtk_entry_set_text(GTK_ENTRY(GETWIDGET("entry_normal_font")), gjitenApp->conf->normalfont);    //gnome_font_picker_set_font_name(GNOME_FONT_PICKER(fontpicker), gjitenApp->conf->normalfont);  }  gnome_font_picker_set_preview_text(GNOME_FONT_PICKER(fontpicker), fontteststrg);  gnome_font_picker_set_mode(GNOME_FONT_PICKER(fontpicker), GNOME_FONT_PICKER_MODE_PIXMAP);  g_signal_connect_swapped(G_OBJECT(fontpicker), "font-set", G_CALLBACK(font_set), (gpointer)GETWIDGET("entry_normal_font"));  gtk_table_attach(GTK_TABLE(GETWIDGET("table_fonts")), fontpicker, 2, 3, 0, 1,									 (GtkAttachOptions)(0),									 (GtkAttachOptions)0, 0, 0);	fontpicker = gnome_font_picker_new();  gtk_widget_show(fontpicker);  if (gjitenApp->conf->largefont != NULL) {    gtk_entry_set_text(GTK_ENTRY(GETWIDGET("entry_large_font")), gjitenApp->conf->largefont);    //gnome_font_picker_set_font_name(GNOME_FONT_PICKER(fontpicker), gjitenApp->conf->normalfont);  }  gnome_font_picker_set_preview_text(GNOME_FONT_PICKER(fontpicker), fontteststrg);  gnome_font_picker_set_mode(GNOME_FONT_PICKER(fontpicker), GNOME_FONT_PICKER_MODE_PIXMAP);  g_signal_connect_swapped(G_OBJECT(fontpicker), "font-set", G_CALLBACK(font_set), (gpointer)GETWIDGET("entry_large_font"));  gtk_table_attach(GTK_TABLE(GETWIDGET("table_fonts")), fontpicker, 2, 3, 1, 2,									 (GtkAttachOptions)(0),									 (GtkAttachOptions)0, 0, 0);	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_largefont_worddic")), gjitenApp->conf->bigwords);		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_largefont_kanjidic")), gjitenApp->conf->bigkanji);		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_envvar_override")), gjitenApp->conf->envvar_override);		checkbutton_envvar_cb(NULL);	g_signal_connect(GTK_OBJECT(GETWIDGET("checkbutton_envvar_override")), "toggled",									 G_CALLBACK(checkbutton_envvar_cb), NULL);	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_use_xft")), gjitenApp->conf->gdk_use_xft);		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_lc_ctype")), gjitenApp->conf->force_ja_JP);		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(GETWIDGET("checkbutton_language_c")), gjitenApp->conf->force_language_c);		tmpwidget = gnome_file_entry_new(NULL, _("Select KanjiPad"));	entry_kanjipad = gnome_file_entry_gnome_entry(GNOME_FILE_ENTRY(tmpwidget));	if (gjitenApp->conf->kanjipad != NULL) {		gnome_file_entry_set_filename(GNOME_FILE_ENTRY(tmpwidget), gjitenApp->conf->kanjipad);	}  gtk_box_pack_start(GTK_BOX(GETWIDGET("hbox_kanjipadfile")), tmpwidget, TRUE, TRUE, 0);  g_signal_connect_swapped(G_OBJECT(dialog_preferences), "response", G_CALLBACK(preferences_response_cb), NULL);  gtk_widget_show_all(dialog_preferences);}