aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJohnny Jacob <jjohnny@novell.com>2007-07-30 15:52:22 +0800
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-07-30 15:52:22 +0800
commitc3381b5b2e4ab4428a7421f23cab04bdef600a17 (patch)
tree2227c57877351128393f7951f65fc5df918a5460 /plugins
parentff02d7a3f5af38c3d24ef2761549361f4b25fdf6 (diff)
downloadgsoc2013-evolution-c3381b5b2e4ab4428a7421f23cab04bdef600a17.tar.gz
gsoc2013-evolution-c3381b5b2e4ab4428a7421f23cab04bdef600a17.tar.zst
gsoc2013-evolution-c3381b5b2e4ab4428a7421f23cab04bdef600a17.zip
: GtkTreeView should have a model. Fixes #445248
2007-07-20 Johnny Jacob <jjohnny@novell.com> * imap-headers.c : (org_gnome_imap_headers) : GtkTreeView should have a model. Fixes #445248 svn path=/trunk/; revision=33893
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imap-features/ChangeLog6
-rw-r--r--plugins/imap-features/imap-headers.c9
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);