diff options
author | Dan Winship <danw@src.gnome.org> | 2000-12-12 00:44:30 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-12-12 00:44:30 +0800 |
commit | e22c643dc64d469e6d4ecabe7d8077194896b1bf (patch) | |
tree | 2da4cf5e5bab1f03065657b4fb4473ab913199ae /mail/mail-callbacks.c | |
parent | 093c2be1a8a2cfb935abcc2410c0625753876a6b (diff) | |
download | gsoc2013-evolution-e22c643dc64d469e6d4ecabe7d8077194896b1bf.tar.gz gsoc2013-evolution-e22c643dc64d469e6d4ecabe7d8077194896b1bf.tar.zst gsoc2013-evolution-e22c643dc64d469e6d4ecabe7d8077194896b1bf.zip |
Remove the never-once-used BonoboObject stuff and make MessageList be a
* message-list.c: Remove the never-once-used BonoboObject stuff
and make MessageList be a GtkWidget instead. Also, keep track of
the ETable directly rather than repeatedly calling
e_table_scrolled_get_table.
* folder-browser.c (folder_browser_destroy): Use gtk methods
rather than bonobo methods to destroy the message list.
(on_right_click, on_double_click): These are being attached to the
ETable directly now, so fix the first argument (which isn't being
used anyway, but...)
(folder_browser_gui_init): simplify now that MessageList itself is
a widget. Also use message_list->table rather than
e_table_scrolled_get_table.
* mail-local.c (mail_local_reconfigure_folder): Add "mail_" to
the beginning of this function name to match its prototype and the
other vague namespace conventions in the mailer.
* mail-callbacks.c (select_all, invert_selection): Use ml->table.
(configure_folder): s/local_reconfigure_folder/mail_&/
svn path=/trunk/; revision=6908
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 9432ce3ce7..deaabb00ac 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -592,13 +592,11 @@ select_all (BonoboUIComponent *uih, void *user_data, const char *path) { FolderBrowser *fb = FOLDER_BROWSER (user_data); MessageList *ml = fb->message_list; - ETableScrolled *scrolled; - + if (ml->folder == NULL) return; - - scrolled = E_TABLE_SCROLLED (ml->etable); - e_table_select_all (scrolled->table); + + e_table_select_all (ml->table); } void @@ -606,13 +604,11 @@ invert_selection (BonoboUIComponent *uih, void *user_data, const char *path) { FolderBrowser *fb = FOLDER_BROWSER (user_data); MessageList *ml = fb->message_list; - ETableScrolled *scrolled; - + if (ml->folder == NULL) return; - - scrolled = E_TABLE_SCROLLED (ml->etable); - e_table_invert_selection (scrolled->table); + + e_table_invert_selection (ml->table); } void @@ -1009,7 +1005,7 @@ configure_folder (BonoboUIComponent *uih, void *user_data, const char *path) { FolderBrowser *fb = FOLDER_BROWSER(user_data); - local_reconfigure_folder(fb); + mail_local_reconfigure_folder(fb); } void |