Beispiel #1
0
static void cs_init(GOCharmapSel *cs)
{
    cs->test = GO_CHARMAP_SEL_TO_UTF8;

    cs->encodings = GO_OPTION_MENU(go_option_menu_new());

    g_signal_connect(G_OBJECT(cs->encodings), "changed",
            G_CALLBACK(encodings_changed_cb), cs);
    gtk_box_pack_start(GTK_BOX(cs), GTK_WIDGET(cs->encodings), TRUE, TRUE, 0);
}
Beispiel #2
0
static void
ls_init (GOLocaleSel *ls)
{
	ls->locales = GO_OPTION_MENU (go_option_menu_new ());
	ls_build_menu (ls);

	g_signal_connect (G_OBJECT (ls->locales), "changed",
                          G_CALLBACK (locales_changed_cb), ls);
        gtk_box_pack_start (GTK_BOX (ls), GTK_WIDGET (ls->locales),
                            TRUE, TRUE, 0);
}