diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-10-12 23:09:17 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-10-12 23:09:17 +0800 |
commit | d4c0c1c808fa8eacfa04fd986fca4c10a1a3e618 (patch) | |
tree | ce297ba5a9ccca9c5e8689007292c7828db0d2cb /calendar/gui/gnome-cal.c | |
parent | 839fe01b7dce4ca209be3998fac2092b97d23ec2 (diff) | |
download | gsoc2013-evolution-d4c0c1c808fa8eacfa04fd986fca4c10a1a3e618.tar.gz gsoc2013-evolution-d4c0c1c808fa8eacfa04fd986fca4c10a1a3e618.tar.zst gsoc2013-evolution-d4c0c1c808fa8eacfa04fd986fca4c10a1a3e618.zip |
set the pixmaps of the toolbar buttons for the views, and removed a lot of
2000-10-12 Damon Chaplin <damon@helixcode.com>
* gui/calendar-commands.c (calendar_control_activate):
(update_pixmaps):
(set_pixmap): set the pixmaps of the toolbar buttons for the views,
and removed a lot of old unused stuff. We'll use plain buttons for
the view buttons for now, until Bonobo toolbars support radio buttons.
* gui/gnome-cal.c (gnome_calendar_dayjump): check day_button is not
NULL before using it.
(gnome_calendar_update_view_buttons): check button is not NULL.
svn path=/trunk/; revision=5889
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 83e9c75bfe..6b80823dfa 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -520,7 +520,8 @@ gnome_calendar_dayjump (GnomeCalendar *gcal, time_t time) priv->selection_start_time = time_day_begin (time); priv->selection_end_time = time_add_day (priv->selection_start_time, 1); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->day_button), TRUE); + if (priv->day_button) + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->day_button), TRUE); } void @@ -2264,7 +2265,9 @@ gnome_calendar_update_view_buttons (GnomeCalendar *gcal) return; } - gtk_signal_handler_block_by_data (GTK_OBJECT (button), gcal); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); - gtk_signal_handler_unblock_by_data (GTK_OBJECT (button), gcal); + if (button) { + gtk_signal_handler_block_by_data (GTK_OBJECT (button), gcal); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); + gtk_signal_handler_unblock_by_data (GTK_OBJECT (button), gcal); + } } |