aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-01-16 06:25:48 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-01-16 06:25:48 +0800
commitad1fe3bc9c50aab92438588d20d377858f4fbd9b (patch)
tree85df58451f444e280c3a9cfa873fa0c517d3d6ea /filter
parent323ebed0e7c7cb599fb946a9b45b3cf7f2f3afcc (diff)
downloadgsoc2013-evolution-ad1fe3bc9c50aab92438588d20d377858f4fbd9b.tar.gz
gsoc2013-evolution-ad1fe3bc9c50aab92438588d20d377858f4fbd9b.tar.zst
gsoc2013-evolution-ad1fe3bc9c50aab92438588d20d377858f4fbd9b.zip
dont re-use 'widget', its the return value!
2003-01-15 Not Zed <NotZed@Ximian.com> * vfolder-rule.c (get_widget): dont re-use 'widget', its the return value! svn path=/trunk/; revision=19488
Diffstat (limited to 'filter')
-rw-r--r--filter/ChangeLog5
-rw-r--r--filter/vfolder-rule.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 82a25ba57b..071793f86c 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-15 Not Zed <NotZed@Ximian.com>
+
+ * vfolder-rule.c (get_widget): dont re-use 'widget', its the
+ return value!
+
2003-01-15 Jeffrey Stedfast <fejj@ximian.com>
* rule-context.c (save): Back to using e_xml_save_file().
diff --git a/filter/vfolder-rule.c b/filter/vfolder-rule.c
index 616349d324..65c1050a5d 100644
--- a/filter/vfolder-rule.c
+++ b/filter/vfolder-rule.c
@@ -528,7 +528,7 @@ get_widget (FilterRule *fr, RuleContext *rc)
VfolderRule *vr = (VfolderRule *) fr;
GtkTreeSelection *selection;
struct _source_data *data;
- GtkWidget *widget, *frame;
+ GtkWidget *widget, *frame, *list;
GtkOptionMenu *omenu;
const char *source;
GtkTreeIter iter;
@@ -552,9 +552,9 @@ get_widget (FilterRule *fr, RuleContext *rc)
g_signal_connect (data->buttons[i], "clicked", edit_buttons[i].func, data);
}
- widget = glade_xml_get_widget (gui, "source_list");
- data->list = (GtkTreeView *) g_object_get_data ((GObject *) widget, "table");
- data->model = (GtkListStore *) g_object_get_data ((GObject *) widget, "model");
+ list = glade_xml_get_widget (gui, "source_list");
+ data->list = (GtkTreeView *) g_object_get_data ((GObject *) list, "table");
+ data->model = (GtkListStore *) g_object_get_data ((GObject *) list, "model");
source = NULL;
while ((source = vfolder_rule_next_source (vr, source))) {
@@ -592,10 +592,10 @@ get_widget (FilterRule *fr, RuleContext *rc)
filter_rule_set_source (fr, (char *) source_names[row]);
set_sensitive (data);
-
- gtk_box_pack_start (GTK_BOX (widget), frame, TRUE, TRUE, 3);
-
+
g_object_unref (gui);
+
+ gtk_box_pack_start (GTK_BOX (widget), frame, TRUE, TRUE, 3);
return widget;
}