aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-12-06 21:50:40 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-12-06 21:50:40 +0800
commitab0001db0d3037310e32b39fa96951b3310cf313 (patch)
treeafd2a7ce230ca1162245e5008ca2873c19efe1ed /mail
parent7fef4ba1e95a25b78600434b2a71ce0762db47f1 (diff)
downloadgsoc2013-evolution-ab0001db0d3037310e32b39fa96951b3310cf313.tar
gsoc2013-evolution-ab0001db0d3037310e32b39fa96951b3310cf313.tar.gz
gsoc2013-evolution-ab0001db0d3037310e32b39fa96951b3310cf313.tar.bz2
gsoc2013-evolution-ab0001db0d3037310e32b39fa96951b3310cf313.tar.lz
gsoc2013-evolution-ab0001db0d3037310e32b39fa96951b3310cf313.tar.xz
gsoc2013-evolution-ab0001db0d3037310e32b39fa96951b3310cf313.tar.zst
gsoc2013-evolution-ab0001db0d3037310e32b39fa96951b3310cf313.zip
** Fix for bug #263236
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. svn path=/trunk/; revision=34660
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/em-folder-view.c17
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);
}