From: Sergio Villar Senin Date: Thu, 23 Oct 2008 18:21:17 +0000 (+0000) Subject: * Replace a label+check button by a HildonCheckButton X-Git-Tag: git_migration_finished~1106 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=c04bb053b183aa6ee0660cfd0f8bc3f3f5783e54 * Replace a label+check button by a HildonCheckButton pmo-trunk-r6153 --- diff --git a/src/hildon2/modest-maemo-security-options-view.c b/src/hildon2/modest-maemo-security-options-view.c index 6a084d0..96b81e5 100644 --- a/src/hildon2/modest-maemo-security-options-view.c +++ b/src/hildon2/modest-maemo-security-options-view.c @@ -131,7 +131,7 @@ create_incoming_security (ModestSecurityOptionsView* self, GtkSizeGroup *size_group) { ModestSecurityOptionsViewPrivate *ppriv; - GtkWidget *check_caption, *entry_caption = NULL; + GtkWidget *entry_caption = NULL; ppriv = MODEST_SECURITY_OPTIONS_VIEW_GET_PRIVATE (self); @@ -149,9 +149,8 @@ create_incoming_security (ModestSecurityOptionsView* self, } ppriv->auth_view = hildon_check_button_new (MODEST_EDITABLE_SIZE); - check_caption = modest_maemo_utils_create_captioned (size_group, - _("mcen_li_emailsetup_secure_authentication"), - ppriv->auth_view); + gtk_button_set_label (GTK_BUTTON (ppriv->auth_view), _("mcen_li_emailsetup_secure_authentication")); + gtk_size_group_add_widget (size_group, ppriv->auth_view); /* Track changes in UI */ g_signal_connect (G_OBJECT (ppriv->security_view), "value-changed", @@ -163,7 +162,7 @@ create_incoming_security (ModestSecurityOptionsView* self, if (ppriv->full) gtk_box_pack_start (GTK_BOX (self), entry_caption, FALSE, FALSE, MODEST_MARGIN_HALF); - gtk_box_pack_start (GTK_BOX (self), check_caption, + gtk_box_pack_start (GTK_BOX (self), ppriv->auth_view, FALSE, FALSE, MODEST_MARGIN_HALF); /* Show widgets */ @@ -173,7 +172,6 @@ create_incoming_security (ModestSecurityOptionsView* self, } gtk_widget_show (ppriv->security_view); gtk_widget_show (ppriv->auth_view); - gtk_widget_show (check_caption); } static void