if (gjitenApp->conf->dicfile_list != NULL) gjitenApp->conf->selected_dic = gjitenApp->conf->dicfile_list->data;
void worddic_update_dic_menu() {	GSList *dicfile_node;  GtkWidget *menu_dictfiles_item;	GjitenDicfile *dicfile;	if (wordDic == NULL) return;	GJITEN_DEBUG("UPDATE MENU\n");	/*	if (GTK_IS_WIDGET(wordDic->menu_selectdic)) {		gtk_option_menu_remove_menu(GTK_OPTION_MENU(wordDic->dicselection_menu));		gtk_widget_destroy(wordDic->menu_selectdic);	}	*/  wordDic->menu_selectdic = gtk_menu_new();	dicfile_node = gjitenApp->conf->dicfile_list;	while (dicfile_node != NULL) {		if (dicfile_node->data != NULL) {			dicfile = dicfile_node->data;			menu_dictfiles_item = gtk_menu_item_new_with_label(dicfile->name);			gtk_menu_shell_append(GTK_MENU_SHELL(wordDic->menu_selectdic), menu_dictfiles_item);			g_signal_connect_swapped(G_OBJECT(menu_dictfiles_item), "activate", 															 G_CALLBACK(on_dicselection_clicked), (gpointer) dicfile);			gtk_widget_show(menu_dictfiles_item);		}		dicfile_node = g_slist_next(dicfile_node);	}  gtk_widget_show(wordDic->dicselection_menu);	gtk_option_menu_set_menu(GTK_OPTION_MENU(wordDic->dicselection_menu), wordDic->menu_selectdic);}