diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/em-folder-view.c | 17 |
2 files changed, 20 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 212051eba1..7af430616c 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2007-12-06 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #263236 + + * em-folder-view.c: (emfv_delete_msg_response): + Look for "Do not ask me again" check in alignment, so + let it works properly. + 2007-12-05 Srinivasa Ragavan <sragavan@novell.com> * mail-config.h: Fix a compiler warning. diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index 614264f547..2ccfecd6f4 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -1054,17 +1054,24 @@ emfv_delete_msg_response (GtkWidget *dialog, int response, gpointer data) if (dialog) { GList *children, *l; + GtkWidget *check = NULL; children = gtk_container_get_children (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox)); for (l = children; l; l = l->next) { - if (GTK_IS_CHECK_BUTTON (l->data) && - !strcmp (gtk_widget_get_name (GTK_WIDGET (l->data)), DelInVFolderCheckName)) - break; + if (GTK_IS_ALIGNMENT (l->data)) { + check = gtk_bin_get_child (GTK_BIN (l->data)); + + if (check && GTK_IS_CHECK_BUTTON (check) && + !strcmp (gtk_widget_get_name (check), DelInVFolderCheckName)) + break; + + check = NULL; + } } - if (l) { + if (check) { GConfClient *gconf = gconf_client_get_default (); - gconf_client_set_bool (gconf, DelInVFolderKey, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (l->data)), NULL); + gconf_client_set_bool (gconf, DelInVFolderKey, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check)), NULL); g_object_unref (gconf); } |