diff options
author | Jason Leach <jleach@ximian.com> | 2001-08-16 03:25:01 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-08-16 03:25:01 +0800 |
commit | 0c485b040fa467a826f06d9482e35863a69f30bc (patch) | |
tree | 70a263f777a902d1bb14c2f869689ea1965174b4 /mail/message-list.c | |
parent | cd588d1cc70367f1935d3148f37cbdc9697c5510 (diff) | |
download | gsoc2013-evolution-0c485b040fa467a826f06d9482e35863a69f30bc.tar.gz gsoc2013-evolution-0c485b040fa467a826f06d9482e35863a69f30bc.tar.zst gsoc2013-evolution-0c485b040fa467a826f06d9482e35863a69f30bc.zip |
Use ALWAYS for scroll frame policy because ETable acts lame with
2001-08-15 Jason Leach <jleach@ximian.com>
* message-list.c (message_list_init): Use ALWAYS for scroll frame
policy because ETable acts lame with AUTOMATIC. Bug #6925.
svn path=/trunk/; revision=12061
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 7f7930c362..a198fe283b 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -1101,7 +1101,7 @@ message_list_init (GtkObject *object) e_scroll_frame_set_policy (E_SCROLL_FRAME (message_list), GTK_POLICY_NEVER, - GTK_POLICY_AUTOMATIC); + GTK_POLICY_ALWAYS); message_list->hidden = NULL; message_list->hidden_pool = NULL; @@ -1123,23 +1123,21 @@ message_list_destroy (GtkObject *object) if (message_list->folder) { save_tree_state(message_list); hide_save_state(message_list); + + camel_object_unhook_event((CamelObject *)message_list->folder, "folder_changed", + folder_changed, message_list); + camel_object_unhook_event((CamelObject *)message_list->folder, "message_changed", + message_changed, message_list); + camel_object_unref (CAMEL_OBJECT (message_list->folder)); } gtk_object_unref (GTK_OBJECT (message_list->model)); if (message_list->idle_id != 0) - g_source_remove(message_list->idle_id); + g_source_remove (message_list->idle_id); if (message_list->seen_id) gtk_timeout_remove (message_list->seen_id); - - if (message_list->folder) { - camel_object_unhook_event((CamelObject *)message_list->folder, "folder_changed", - folder_changed, message_list); - camel_object_unhook_event((CamelObject *)message_list->folder, "message_changed", - message_changed, message_list); - camel_object_unref (CAMEL_OBJECT (message_list->folder)); - } if (message_list->hidden) { g_hash_table_destroy(message_list->hidden); @@ -2091,7 +2089,7 @@ message_list_foreach (MessageList *message_list, void message_list_set_threaded(MessageList *ml, gboolean threaded) { - if (ml->threaded ^ threaded) { + if (ml->threaded != threaded) { ml->threaded = threaded; mail_regen_list(ml, ml->search, NULL, NULL); @@ -2104,7 +2102,7 @@ message_list_set_hidedeleted(MessageList *ml, gboolean hidedeleted) if (ml->folder && CAMEL_IS_VTRASH_FOLDER(ml->folder)) hidedeleted = FALSE; - if (ml->hidedeleted ^ hidedeleted) { + if (ml->hidedeleted != hidedeleted) { ml->hidedeleted = hidedeleted; mail_regen_list(ml, ml->search, NULL, NULL); |