diff options
-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; } |