diff options
author | Not Zed <NotZed@Ximian.com> | 2002-11-26 19:52:31 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-11-26 19:52:31 +0800 |
commit | efcca0533d47c3b1babb9451507e8db24727eb0a (patch) | |
tree | ad2d2fd50bb8dd6e89df6b47533ea5a968927429 | |
parent | cbdf3bccf6858264bb75500c695e35040a114910 (diff) | |
download | gsoc2013-evolution-efcca0533d47c3b1babb9451507e8db24727eb0a.tar.gz gsoc2013-evolution-efcca0533d47c3b1babb9451507e8db24727eb0a.tar.zst gsoc2013-evolution-efcca0533d47c3b1babb9451507e8db24727eb0a.zip |
Add a textcellrenderer to display the folders. (get_widget): Remove FIXME
2002-11-26 Not Zed <NotZed@Ximian.com>
* vfolder-rule.c (get_widget): Add a textcellrenderer to display
the folders.
(get_widget): Remove FIXME which was wrong.
svn path=/trunk/; revision=18924
-rw-r--r-- | filter/ChangeLog | 4 | ||||
-rw-r--r-- | filter/vfolder-rule.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 6ff5f2192b..1f26d43331 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,5 +1,9 @@ 2002-11-26 Not Zed <NotZed@Ximian.com> + * vfolder-rule.c (get_widget): Add a textcellrenderer to display + the folders. + (get_widget): Remove FIXME which was wrong. + * filter-rule.c (filter_rule_validate): FILTER_RULE_CLASS -> _GET_CLASS diff --git a/filter/vfolder-rule.c b/filter/vfolder-rule.c index bf52e825c1..393bfc8650 100644 --- a/filter/vfolder-rule.c +++ b/filter/vfolder-rule.c @@ -508,7 +508,6 @@ get_widget (FilterRule *fr, RuleContext *rc) g_object_set_data_full ((GObject *) frame, "data", data, g_free); for (i = 0; i < BUTTON_LAST; i++) { - /* FIXME: I think these need to be unref'd */ data->buttons[i] = (GtkButton *) glade_xml_get_widget (gui, edit_buttons[i].name); g_signal_connect (data->buttons[i], "clicked", edit_buttons[i].func, data); } @@ -518,6 +517,10 @@ get_widget (FilterRule *fr, RuleContext *rc) gtk_tree_view_set_model (data->list, (GtkTreeModel *) data->model); selection = gtk_tree_view_get_selection (data->list); gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE); + gtk_tree_view_insert_column_with_attributes(data->list, -1, _("Folder(s)"), + gtk_cell_renderer_text_new(), + "text", 0, + NULL); source = NULL; while ((source = vfolder_rule_next_source (vr, source))) { |