From c3381b5b2e4ab4428a7421f23cab04bdef600a17 Mon Sep 17 00:00:00 2001 From: Johnny Jacob Date: Mon, 30 Jul 2007 07:52:22 +0000 Subject: : GtkTreeView should have a model. Fixes #445248 2007-07-20 Johnny Jacob * imap-headers.c : (org_gnome_imap_headers) : GtkTreeView should have a model. Fixes #445248 svn path=/trunk/; revision=33893 --- plugins/imap-features/ChangeLog | 6 ++++++ plugins/imap-features/imap-headers.c | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'plugins/imap-features') diff --git a/plugins/imap-features/ChangeLog b/plugins/imap-features/ChangeLog index de7e9ec02a..5799b6e7e1 100644 --- a/plugins/imap-features/ChangeLog +++ b/plugins/imap-features/ChangeLog @@ -1,3 +1,9 @@ +2007-07-20 Johnny Jacob + + * imap-headers.c : (org_gnome_imap_headers) : + GtkTreeView should have a model. + Fixes #445248 + 2007-07-09 Sankar P * Committed on behalf of Gilles Dartiguelongue diff --git a/plugins/imap-features/imap-headers.c b/plugins/imap-features/imap-headers.c index 2c190297a2..0d49afbc4e 100644 --- a/plugins/imap-features/imap-headers.c +++ b/plugins/imap-features/imap-headers.c @@ -223,11 +223,14 @@ org_gnome_imap_headers (EPlugin *epl, EConfigHookItemFactoryData *data) remove_header = GTK_BUTTON(glade_xml_get_widget (gladexml, "removeHeader")); url = camel_url_new (e_account_get_string(account, E_ACCOUNT_SOURCE_URL), &ex); + + store = gtk_tree_store_new (1, G_TYPE_STRING); + gtk_tree_view_set_model (custom_headers_tree, GTK_TREE_MODEL(store)); + if (url) { char *custom_headers; - store = gtk_tree_store_new (1, G_TYPE_STRING); - custom_headers = g_strdup(camel_url_get_param (url, "imap_custom_headers")); + custom_headers = g_strdup(camel_url_get_param (url, "imap_custom_headers")); if (custom_headers) { int i=0; @@ -240,7 +243,7 @@ org_gnome_imap_headers (EPlugin *epl, EConfigHookItemFactoryData *data) i++; } g_strfreev (custom_headers_array); - gtk_tree_view_set_model (custom_headers_tree, GTK_TREE_MODEL(store)); + } g_free (custom_headers); -- cgit v1.2.3