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/folder-browser.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/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index f5180d3134..a557f64a98 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -70,7 +70,7 @@ folder_browser_destroy (GtkObject *object) } if (folder_browser->message_list) - bonobo_object_unref (BONOBO_OBJECT (folder_browser->message_list)); + gtk_widget_destroy (GTK_WIDGET (folder_browser->message_list)); if (folder_browser->mail_display) gtk_widget_destroy (GTK_WIDGET (folder_browser->mail_display)); @@ -441,7 +441,7 @@ filter_mlist (GtkWidget *w, FolderBrowser *fb) /* handle context menu over message-list */ static gint -on_right_click (ETableScrolled *table, gint row, gint col, GdkEvent *event, FolderBrowser *fb) +on_right_click (ETable *table, gint row, gint col, GdkEvent *event, FolderBrowser *fb) { extern CamelFolder *drafts_folder; const CamelMessageInfo *info; @@ -631,7 +631,7 @@ etable_key (ETable *table, int row, int col, GdkEvent *ev, FolderBrowser *fb) } static void -on_double_click (ETableScrolled *table, gint row, gint col, GdkEvent *event, FolderBrowser *fb) +on_double_click (ETable *table, gint row, gint col, GdkEvent *event, FolderBrowser *fb) { view_msg (NULL, fb); } @@ -665,11 +665,10 @@ folder_browser_gui_init (FolderBrowser *fb) 0, 0, 0); - fb->message_list_w = message_list_get_widget (fb->message_list); - e_paned_add1 (E_PANED (fb->vpaned), fb->message_list_w); - gtk_widget_show (fb->message_list_w); + e_paned_add1 (E_PANED (fb->vpaned), GTK_WIDGET (fb->message_list)); + gtk_widget_show (GTK_WIDGET (fb->message_list)); - gtk_signal_connect (GTK_OBJECT (fb->message_list_w), "size_allocate", + gtk_signal_connect (GTK_OBJECT (fb->message_list), "size_allocate", GTK_SIGNAL_FUNC (fb_resize_cb), NULL); e_paned_add2 (E_PANED (fb->vpaned), GTK_WIDGET (fb->mail_display)); @@ -723,13 +722,13 @@ my_folder_browser_init (GtkObject *object) fb->message_list = (MessageList *)message_list_new (); fb->mail_display = (MailDisplay *)mail_display_new (); - gtk_signal_connect (GTK_OBJECT (e_table_scrolled_get_table(E_TABLE_SCROLLED(fb->message_list->etable))), + gtk_signal_connect (GTK_OBJECT (fb->message_list->table), "key_press", GTK_SIGNAL_FUNC (etable_key), fb); - gtk_signal_connect (GTK_OBJECT (e_table_scrolled_get_table(E_TABLE_SCROLLED(fb->message_list->etable))), + gtk_signal_connect (GTK_OBJECT (fb->message_list->table), "right_click", GTK_SIGNAL_FUNC (on_right_click), fb); - - gtk_signal_connect (GTK_OBJECT (e_table_scrolled_get_table(E_TABLE_SCROLLED(fb->message_list->etable))), + + gtk_signal_connect (GTK_OBJECT (fb->message_list->table), "double_click", GTK_SIGNAL_FUNC (on_double_click), fb); gtk_signal_connect (GTK_OBJECT(fb->message_list), "message_selected", |