From 8a072ffc7c0ddcde472877a51ace0bb14f86fb0a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 24 Apr 2009 11:45:21 +0200 Subject: GN-bug #572348 - Removed deprecated Gtk+ symbols Some still left, because those gone in kill-bonobo branch. --- smime/ChangeLog | 8 ++ smime/gui/e-cert-selector.c | 21 ++-- smime/gui/smime-ui.glade | 241 +++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 253 insertions(+), 17 deletions(-) (limited to 'smime') diff --git a/smime/ChangeLog b/smime/ChangeLog index 3677604add..8310f3dbfb 100644 --- a/smime/ChangeLog +++ b/smime/ChangeLog @@ -1,3 +1,11 @@ +2009-04-24 Milan Crha + + ** Fix for bug #572348 + + * gui/smime-ui.glade: + * gui/e-cert-selector.c: + Remove deprecated Gtk+ symbols. + 2009-04-07 Milan Crha ** Fix for bug #539002 diff --git a/smime/gui/e-cert-selector.c b/smime/gui/e-cert-selector.c index dacf33198f..770f95c1cd 100644 --- a/smime/gui/e-cert-selector.c +++ b/smime/gui/e-cert-selector.c @@ -41,7 +41,7 @@ struct _ECertSelectorPrivate { CERTCertList *certlist; - GtkWidget *menu, *description; + GtkWidget *combobox, *description; }; enum { @@ -73,7 +73,7 @@ ecs_find_current(ECertSelector *ecs) if (p->certlist == NULL || CERT_LIST_EMPTY(p->certlist)) return NULL; - n = gtk_option_menu_get_history((GtkOptionMenu *)p->menu); + n = gtk_combo_box_get_active (GTK_COMBO_BOX (p->combobox)); node = CERT_LIST_HEAD(p->certlist); while (n>0 && !CERT_LIST_END(node, p->certlist)) { n--; @@ -149,7 +149,7 @@ e_cert_selector_new(int type, const char *currentid) CERTCertList *certlist; CERTCertListNode *node; GladeXML *gui; - GtkWidget *w, *menu; + GtkWidget *w; int n=0, active=0; char *gladefile; @@ -162,7 +162,7 @@ e_cert_selector_new(int type, const char *currentid) gui = glade_xml_new(gladefile, "cert_selector_vbox", NULL); g_free (gladefile); - p->menu = glade_xml_get_widget(gui, "cert_menu"); + p->combobox = glade_xml_get_widget(gui, "cert_combobox"); p->description = glade_xml_get_widget(gui, "cert_description"); w = glade_xml_get_widget(gui, "cert_selector_vbox"); @@ -179,7 +179,7 @@ e_cert_selector_new(int type, const char *currentid) break; } - menu = gtk_menu_new(); + gtk_list_store_clear (GTK_LIST_STORE (gtk_combo_box_get_model (GTK_COMBO_BOX (p->combobox)))); certlist = CERT_FindUserCertsByUsage(CERT_GetDefaultCertDB(), usage, FALSE, TRUE, NULL); ecs->priv->certlist = certlist; @@ -187,9 +187,7 @@ e_cert_selector_new(int type, const char *currentid) node = CERT_LIST_HEAD(certlist); while (!CERT_LIST_END(node, certlist)) { if (node->cert->nickname || node->cert->emailAddr) { - w = gtk_menu_item_new_with_label(node->cert->nickname?node->cert->nickname:node->cert->emailAddr); - gtk_menu_shell_append((GtkMenuShell *)menu, w); - gtk_widget_show(w); + gtk_combo_box_append_text (GTK_COMBO_BOX (p->combobox), node->cert->nickname?node->cert->nickname:node->cert->emailAddr); if (currentid != NULL && ((node->cert->nickname != NULL && strcmp(node->cert->nickname, currentid) == 0) @@ -203,14 +201,13 @@ e_cert_selector_new(int type, const char *currentid) } } - gtk_option_menu_set_menu((GtkOptionMenu *)p->menu, menu); - gtk_option_menu_set_history((GtkOptionMenu *)p->menu, active); + gtk_combo_box_set_active (GTK_COMBO_BOX (p->combobox), active); - g_signal_connect(p->menu, "changed", G_CALLBACK(ecs_cert_changed), ecs); + g_signal_connect (p->combobox, "changed", G_CALLBACK(ecs_cert_changed), ecs); g_object_unref(gui); - ecs_cert_changed(p->menu, ecs); + ecs_cert_changed(p->combobox, ecs); return GTK_WIDGET(ecs); } diff --git a/smime/gui/smime-ui.glade b/smime/gui/smime-ui.glade index 41d119f2ce..686cc38d02 100644 --- a/smime/gui/smime-ui.glade +++ b/smime/gui/smime-ui.glade @@ -4,7 +4,7 @@ - dialog1 + dialog1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_CENTER False @@ -15,6 +15,8 @@ False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST + True + False False @@ -94,6 +96,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -115,6 +121,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -136,6 +146,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -157,6 +171,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -180,6 +198,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -227,6 +249,10 @@ 1 0 3 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -251,6 +277,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -275,6 +305,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -299,6 +333,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -323,6 +361,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -347,6 +389,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -371,6 +417,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -395,6 +445,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -419,6 +473,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -443,6 +501,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -467,6 +529,10 @@ 1 0 3 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -491,6 +557,10 @@ 0.5 0 3 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -515,6 +585,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -539,6 +613,10 @@ 0.5 6 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -564,6 +642,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -589,6 +671,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -614,6 +700,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -639,6 +729,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -664,6 +758,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -689,6 +787,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -714,6 +816,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -739,6 +845,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -764,6 +874,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -789,6 +903,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -814,6 +932,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -838,6 +960,10 @@ 0.5 0 3 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -875,6 +1001,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -913,6 +1043,9 @@ False False True + False + False + False @@ -931,6 +1064,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -969,6 +1106,9 @@ False False True + False + False + False @@ -987,6 +1127,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -1052,6 +1196,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -1084,6 +1232,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -1101,7 +1253,7 @@ - window1 + window1 GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False @@ -1112,6 +1264,8 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True + False @@ -1143,6 +1297,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1174,6 +1332,9 @@ False False True + False + False + False Certificates Table @@ -1263,6 +1424,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1333,6 +1498,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1405,6 +1574,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -1431,6 +1604,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1462,6 +1639,9 @@ False False True + False + False + False Certificates Table @@ -1551,6 +1731,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1623,6 +1807,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -1649,6 +1837,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1680,6 +1872,9 @@ False False True + False + False + False @@ -1766,6 +1961,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1838,6 +2037,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -1859,6 +2062,8 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True + False False @@ -1939,6 +2144,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2017,6 +2226,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2047,6 +2260,8 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True + False @@ -2074,6 +2289,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2083,10 +2302,12 @@ - + True - True - -1 + a +b + False + True 0 @@ -2154,6 +2375,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -2182,6 +2407,8 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True + False False @@ -2249,6 +2476,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 -- cgit