diff options
author | JP Rosevear <jpr@novell.com> | 2004-10-19 23:51:23 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-10-19 23:51:23 +0800 |
commit | 7ab239d8f72fd456db372060227c6256a9c8db6d (patch) | |
tree | 18ceef27c14ece2bd18fa7e9f4fd94c34603e8da /calendar/gui/gnome-cal.c | |
parent | 2b5f7894090d1dcc8fa5b0b17e0f26c3114ad164 (diff) | |
download | gsoc2013-evolution-7ab239d8f72fd456db372060227c6256a9c8db6d.tar.gz gsoc2013-evolution-7ab239d8f72fd456db372060227c6256a9c8db6d.tar.zst gsoc2013-evolution-7ab239d8f72fd456db372060227c6256a9c8db6d.zip |
listen to the canvas for focus events (setup_widgets): listen for listen
2004-10-19 JP Rosevear <jpr@novell.com>
* gui/gnome-cal.c (connect_list_view_focus): listen to the canvas
for focus events
(setup_widgets): listen for listen view selection changes
* gui/e-cal-list-view.c (setup_e_table): listen for the cursor to
move
(e_cal_list_view_cursor_change_cb): indicate the selection changed
svn path=/trunk/; revision=27623
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 79cdda1ca3..8b51f895a6 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -935,9 +935,13 @@ connect_week_view_focus (GnomeCalendar *gcal, EWeekView *wv) static void connect_list_view_focus (GnomeCalendar *gcal, ECalListView *lv) { - g_signal_connect (lv, "focus_in_event", + ETable *etable; + + etable = e_table_scrolled_get_table (lv->table_scrolled); + + g_signal_connect (etable->table_canvas, "focus_in_event", G_CALLBACK (calendar_focus_change_cb), gcal); - g_signal_connect (lv, "focus_out_event", + g_signal_connect (etable->table_canvas, "focus_out_event", G_CALLBACK (calendar_focus_change_cb), gcal); } @@ -1318,6 +1322,8 @@ setup_widgets (GnomeCalendar *gcal) e_calendar_view_set_calendar (E_CALENDAR_VIEW (priv->list_view), gcal); e_calendar_view_set_timezone (E_CALENDAR_VIEW (priv->list_view), priv->zone); + g_signal_connect (priv->list_view, "selection_changed", + G_CALLBACK (view_selection_changed_cb), gcal); connect_list_view_focus (gcal, E_CAL_LIST_VIEW (priv->list_view)); |