diff options
author | Cody Russell <bratsche@src.gnome.org> | 2000-08-10 07:59:37 +0800 |
---|---|---|
committer | Cody Russell <bratsche@src.gnome.org> | 2000-08-10 07:59:37 +0800 |
commit | 57b053b87516dd32f785fcb0cb35e15adc661239 (patch) | |
tree | c5ba77eb44e5824915a5f483d9b10486a4ae2b45 /calendar | |
parent | fc65f736557ec270e57a27d6c813ff3f1d2356ea (diff) | |
download | gsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.tar.gz gsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.tar.zst gsoc2013-evolution-57b053b87516dd32f785fcb0cb35e15adc661239.zip |
Made the toolbars conform to the user's gnomecc settings for detachable
toolbars.
svn path=/trunk/; revision=4677
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 4 | ||||
-rw-r--r-- | calendar/gui/calendar-commands.c | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 445d11e473..51cb7a39ab 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,7 @@ +2000-08-09 Cody Russell <bratsche@gnome.org> + * gui/calendar-commands.c: Make the toolbar honor the user's + gnomecc settings for detachable toolbars. + 2000-08-09 Federico Mena Quintero <federico@helixcode.com> * gui/alarm.c (pop_alarm): Oops, subtract the new alarm's trigger diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 4f06fd6239..feb3cd9590 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -650,9 +650,14 @@ calendar_control_activate (BonoboControl *control, gtk_widget_show_all (toolbar_frame); + behavior = GNOME_DOCK_ITEM_BEH_EXCLUSIVE | + GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL; + if (!gnome_preferences_get_toolbar_detachable ()) + behavior |= GNOME_DOCK_ITEM_BEH_LOCKED; + bonobo_ui_handler_dock_add (uih, "/Toolbar", bonobo_object_corba_objref (BONOBO_OBJECT (bonobo_control_new (toolbar_frame))), - GNOME_DOCK_ITEM_BEH_EXCLUSIVE | GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL, + behavior, GNOME_DOCK_TOP, 1, 1, 0); |