diff options
author | Not Zed <NotZed@Ximian.com> | 2003-01-16 06:25:48 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-01-16 06:25:48 +0800 |
commit | ad1fe3bc9c50aab92438588d20d377858f4fbd9b (patch) | |
tree | 85df58451f444e280c3a9cfa873fa0c517d3d6ea | |
parent | 323ebed0e7c7cb599fb946a9b45b3cf7f2f3afcc (diff) | |
download | gsoc2013-evolution-ad1fe3bc9c50aab92438588d20d377858f4fbd9b.tar gsoc2013-evolution-ad1fe3bc9c50aab92438588d20d377858f4fbd9b.tar.gz gsoc2013-evolution-ad1fe3bc9c50aab92438588d20d377858f4fbd9b.tar.bz2 gsoc2013-evolution-ad1fe3bc9c50aab92438588d20d377858f4fbd9b.tar.lz gsoc2013-evolution-ad1fe3bc9c50aab92438588d20d377858f4fbd9b.tar.xz 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
-rw-r--r-- | filter/ChangeLog | 5 | ||||
-rw-r--r-- | filter/vfolder-rule.c | 14 |
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; } |