diff options
author | Damon Chaplin <damon@ximian.com> | 2001-12-11 03:24:42 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-12-11 03:24:42 +0800 |
commit | 68f8ea5429fed536060ccfe0ccba459b5bce709c (patch) | |
tree | 34fc0912731256a49cff94bd2d87713277782022 /calendar/gui/calendar-commands.c | |
parent | 9786b8ab7d75e20d28b7b3f91b403d21a28fd3cf (diff) | |
download | gsoc2013-evolution-68f8ea5429fed536060ccfe0ccba459b5bce709c.tar.gz gsoc2013-evolution-68f8ea5429fed536060ccfe0ccba459b5bce709c.tar.zst gsoc2013-evolution-68f8ea5429fed536060ccfe0ccba459b5bce709c.zip |
removed code that connects to GnomeCalendar's "dates_shown_changed"
2001-12-10 Damon Chaplin <damon@ximian.com>
* gui/control-factory.c (control_factory_new_control): removed code
that connects to GnomeCalendar's "dates_shown_changed" signal.
* gui/calendar-commands.c (gcal_calendar_dates_change_cb):
(calendar_control_activate): moved it here, so it gets reconnected
whenever the control is activated. Fixes bug #15798.
svn path=/trunk/; revision=14960
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 62c123da4a..0b079f8df7 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -571,6 +571,18 @@ sensitize_taskpad_commands (GnomeCalendar *gcal, BonoboControl *control, gboolea NULL); } +/* Callback used when the dates shown by the GnomeCalendar are changed. + We want to update the dates in the folder bar. */ +static void +gcal_calendar_dates_change_cb (GnomeCalendar *gcal, gpointer data) +{ + BonoboControl *control; + + control = BONOBO_CONTROL (data); + + calendar_set_folder_bar_label (gcal, control); +} + /* Callback used when the selection in the calendar views changes */ static void gcal_calendar_selection_changed_cb (GnomeCalendar *gcal, gpointer data) @@ -740,6 +752,9 @@ calendar_control_activate (BonoboControl *control, gnome_calendar_setup_view_menus (gcal, uic); + gtk_signal_connect (GTK_OBJECT (gcal), "dates_shown_changed", + GTK_SIGNAL_FUNC (gcal_calendar_dates_change_cb), + control); gtk_signal_connect (GTK_OBJECT (gcal), "calendar_focus_change", GTK_SIGNAL_FUNC (gcal_calendar_focus_change_cb), control); gtk_signal_connect (GTK_OBJECT (gcal), "taskpad_focus_change", |