From 3fb451ad92ec8175e987b27aa67ed8acc7e22aa8 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 8 Dec 2000 21:33:35 +0000 Subject: Connect to signals on the ETable instead of the ETableScrolled. 2000-12-08 Christopher James Lahey * folder-browser.c: Connect to signals on the ETable instead of the ETableScrolled. * subscribe-dialog.c: Used the e_table_scrolled_get_table function instead of accessing the variable directly. svn path=/trunk/; revision=6873 --- mail/ChangeLog | 8 ++++++++ mail/folder-browser.c | 10 +++++----- mail/subscribe-dialog.c | 4 ++-- 3 files changed, 15 insertions(+), 7 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 906bda8639..bde92669dc 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2000-12-08 Christopher James Lahey + + * folder-browser.c: Connect to signals on the ETable instead of + the ETableScrolled. + + * subscribe-dialog.c: Used the e_table_scrolled_get_table function + instead of accessing the variable directly. + 2000-12-08 Christopher James Lahey * message-list.c: Connect to signals on the ETable instead of the diff --git a/mail/folder-browser.c b/mail/folder-browser.c index adc71fc72d..5b032b22aa 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -723,14 +723,14 @@ 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 (fb->message_list->etable), + gtk_signal_connect (GTK_OBJECT (e_table_scrolled_get_table(E_TABLE_SCROLLED(fb->message_list->etable))), "key_press", GTK_SIGNAL_FUNC (etable_key), fb); - gtk_signal_connect (GTK_OBJECT (fb->message_list->etable), "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))), + "right_click", GTK_SIGNAL_FUNC (on_right_click), fb); - gtk_signal_connect (GTK_OBJECT (fb->message_list->etable), "double_click", - GTK_SIGNAL_FUNC (on_double_click), fb); + gtk_signal_connect (GTK_OBJECT (e_table_scrolled_get_table(E_TABLE_SCROLLED(fb->message_list->etable))), + "double_click", GTK_SIGNAL_FUNC (on_double_click), fb); gtk_signal_connect (GTK_OBJECT(fb->message_list), "message_selected", on_message_selected, fb); diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c index 6f4dde25c0..3d85e265bd 100644 --- a/mail/subscribe-dialog.c +++ b/mail/subscribe-dialog.c @@ -952,7 +952,7 @@ subscribe_dialog_gui_init (SubscribeDialog *sc) gtk_object_sink (GTK_OBJECT (extras)); - gtk_signal_connect (GTK_OBJECT (E_TABLE_SCROLLED (sc->store_etable)->table), + gtk_signal_connect (GTK_OBJECT (e_table_scrolled_get_table(E_TABLE_SCROLLED (sc->store_etable))), "cursor_change", GTK_SIGNAL_FUNC (storage_selected_cb), sc); @@ -999,7 +999,7 @@ subscribe_dialog_gui_init (SubscribeDialog *sc) gdk_pixbuf_unref(toggles[0]); gdk_pixbuf_unref(toggles[1]); - gtk_signal_connect (GTK_OBJECT (E_TABLE_SCROLLED (sc->folder_etable)->table), + gtk_signal_connect (GTK_OBJECT (e_table_scrolled_get_table(E_TABLE_SCROLLED (sc->folder_etable))), "double_click", GTK_SIGNAL_FUNC (folder_toggle_cb), sc); gtk_table_attach ( -- cgit