aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-11-26 20:06:35 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-11-26 20:06:35 +0800
commit2382dbef3f62323796e1b36996bd14a74230a024 (patch)
treedf81550577623c5fa121142b004b6f549a520dab /mail
parentefcca0533d47c3b1babb9451507e8db24727eb0a (diff)
downloadgsoc2013-evolution-2382dbef3f62323796e1b36996bd14a74230a024.tar
gsoc2013-evolution-2382dbef3f62323796e1b36996bd14a74230a024.tar.gz
gsoc2013-evolution-2382dbef3f62323796e1b36996bd14a74230a024.tar.bz2
gsoc2013-evolution-2382dbef3f62323796e1b36996bd14a74230a024.tar.lz
gsoc2013-evolution-2382dbef3f62323796e1b36996bd14a74230a024.tar.xz
gsoc2013-evolution-2382dbef3f62323796e1b36996bd14a74230a024.tar.zst
gsoc2013-evolution-2382dbef3f62323796e1b36996bd14a74230a024.zip
clicked->response signal for gtk dialogue. (new_rule_clicked): Dont unref
2002-11-26 Not Zed <NotZed@Ximian.com> * mail-vfolder.c (vfolder_gui_add_rule): clicked->response signal for gtk dialogue. (new_rule_clicked): Dont unref after destroy (duh, idiot again). (edit_rule_response): Same here. (mail_vfolder_delete_uri): Connect response signal to gtk_widget_destroy directrly using g_signal_connect_swapped. (close_dialogue): Removed, as no longer needed. svn path=/trunk/; revision=18925
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/mail-vfolder.c12
2 files changed, 10 insertions, 10 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index dcd9067a99..b61d234309 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,13 @@
2002-11-26 Not Zed <NotZed@Ximian.com>
+ * mail-vfolder.c (vfolder_gui_add_rule): clicked->response signal
+ for gtk dialogue.
+ (new_rule_clicked): Dont unref after destroy (duh, idiot again).
+ (edit_rule_response): Same here.
+ (mail_vfolder_delete_uri): Connect response signal to
+ gtk_widget_destroy directrly using g_signal_connect_swapped.
+ (close_dialogue): Removed, as no longer needed.
+
* message-list.c (get_normalised_string): Duh idiot, "un-fixed"
the memleak i added.
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index b1b7a20d92..1ee161580a 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -393,12 +393,6 @@ mail_vfolder_add_uri(CamelStore *store, const char *uri, int remove)
vfolder_adduri(uri, folders, remove);
}
-static void
-close_dialogue(GtkDialog *gd, int response)
-{
- g_object_unref(gd);
-}
-
/* called when a uri is deleted from a store */
void
mail_vfolder_delete_uri(CamelStore *store, const char *uri)
@@ -451,7 +445,7 @@ mail_vfolder_delete_uri(CamelStore *store, const char *uri)
"Used the removed folder:\n '%s'\n"
"And have been updated."),
changed->str, uri);
- g_signal_connect(gd, "response", G_CALLBACK(close_dialogue), NULL);
+ g_signal_connect_swapped(gd, "response", G_CALLBACK(gtk_widget_destroy), gd);
gtk_widget_show((GtkWidget *)gd);
user = g_strdup_printf("%s/vfolders.xml", evolution_dir);
@@ -835,7 +829,6 @@ edit_rule_response(GtkWidget *w, int button, void *data)
}
gtk_widget_destroy(w);
- g_object_unref(w);
}
void
@@ -894,7 +887,6 @@ new_rule_clicked(GtkWidget *w, int button, void *data)
}
gtk_widget_destroy(w);
- g_object_unref(w);
}
FilterPart *
@@ -940,7 +932,7 @@ vfolder_gui_add_rule(VfolderRule *rule)
gtk_box_pack_start((GtkBox *)gd->vbox, w, TRUE, TRUE, 0);
gtk_widget_show((GtkWidget *)gd);
g_object_set_data_full(G_OBJECT(gd), "rule", rule, (GtkDestroyNotify)g_object_unref);
- g_signal_connect(gd, "clicked", G_CALLBACK(new_rule_clicked), NULL);
+ g_signal_connect(gd, "response", G_CALLBACK(new_rule_clicked), NULL);
gtk_widget_show((GtkWidget *)gd);
}