diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imap-features/ChangeLog | 6 | ||||
-rw-r--r-- | plugins/imap-features/imap-headers.c | 9 |
2 files changed, 12 insertions, 3 deletions
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 <jjohnny@novell.com> + + * imap-headers.c : (org_gnome_imap_headers) : + GtkTreeView should have a model. + Fixes #445248 + 2007-07-09 Sankar P <psankar@novell.com> * Committed on behalf of Gilles Dartiguelongue <dartigug@esiee.fr> 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); |