From f4fbeeefa18c0d04e5f0dc411a93e199afd4e215 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 10 Dec 2000 00:09:55 +0000 Subject: Connect to the "cursor_change" signal on the ETable here instead of the 2000-12-09 Christopher James Lahey * gui/component/select-names/e-select-names.c (e_select_names_init): Connect to the "cursor_change" signal on the ETable here instead of the ETableScrolled. (remove_address): Added the col and event parameters to this callback to match the added parameters to the double click signal. (e_select_names_add_section): Connect to the "double_click" signal on the ETable here instead of the ETableScrolled. svn path=/trunk/; revision=6894 --- addressbook/ChangeLog | 10 ++++++++++ addressbook/gui/component/select-names/e-select-names.c | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 3f02359832..9374e6c7b9 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,13 @@ +2000-12-09 Christopher James Lahey + + * gui/component/select-names/e-select-names.c + (e_select_names_init): Connect to the "cursor_change" signal on + the ETable here instead of the ETableScrolled. + (remove_address): Added the col and event parameters to this + callback to match the added parameters to the double click signal. + (e_select_names_add_section): Connect to the "double_click" signal + on the ETable here instead of the ETableScrolled. + 2000-12-09 Christopher James Lahey * backend/ebook/e-card.c (e_card_set_arg): When setting the "name" diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index ece38c5efe..b039b661dd 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -182,7 +182,7 @@ e_select_names_init (ESelectNames *e_select_names) e_select_names->currently_selected = -1; - gtk_signal_connect(GTK_OBJECT(e_select_names->table), "cursor_change", + gtk_signal_connect(GTK_OBJECT(e_table_scrolled_get_table(e_select_names->table)), "cursor_change", GTK_SIGNAL_FUNC(set_current_selection), e_select_names); } @@ -274,7 +274,7 @@ button_clicked(GtkWidget *button, ESelectNamesChild *child) } static void -remove_address(ETableScrolled *table, int row, ESelectNamesChild *child) +remove_address(ETableScrolled *table, int row, int col, GdkEvent *event, ESelectNamesChild *child) { EIterator *iterator = e_list_get_iterator(e_select_names_model_get_data(child->source)); e_iterator_reset(iterator); @@ -327,7 +327,7 @@ e_select_names_add_section(ESelectNames *e_select_names, char *name, char *id, E model = e_select_names_table_model_new(source); etable = e_table_scrolled_new (model, NULL, SPEC2, NULL); - gtk_signal_connect(GTK_OBJECT(etable), "double_click", + gtk_signal_connect(GTK_OBJECT(e_table_scrolled_get_table(E_TABLE_SCROLLED(etable))), "double_click", GTK_SIGNAL_FUNC(remove_address), child); child->model = model; -- cgit v1.2.3