aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-01 11:46:13 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-01 11:46:13 +0800
commit7d0efdf785690d7e54344b756b8b73db5fc55ab7 (patch)
treea2cca3d9318eb0fdb8e12c2d2290de7a5686cbd5 /calendar/gui/calendar-commands.c
parenta718dec073135b0dac15e0f36e9a7ac6b9b9ddfa (diff)
downloadgsoc2013-evolution-7d0efdf785690d7e54344b756b8b73db5fc55ab7.tar
gsoc2013-evolution-7d0efdf785690d7e54344b756b8b73db5fc55ab7.tar.gz
gsoc2013-evolution-7d0efdf785690d7e54344b756b8b73db5fc55ab7.tar.bz2
gsoc2013-evolution-7d0efdf785690d7e54344b756b8b73db5fc55ab7.tar.lz
gsoc2013-evolution-7d0efdf785690d7e54344b756b8b73db5fc55ab7.tar.xz
gsoc2013-evolution-7d0efdf785690d7e54344b756b8b73db5fc55ab7.tar.zst
gsoc2013-evolution-7d0efdf785690d7e54344b756b8b73db5fc55ab7.zip
Make the toolbar look like a standard GNOME toolbar my putting it into
a GtkFrame. Also, make sure it cannot be dragged to the left or right of the dock, because with the current non-BonoboUIHandler system we use it causes bad bad things to happen. svn path=/trunk/; revision=3319
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index afc8580d09..96896810e6 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -540,7 +540,7 @@ calendar_control_activate (BonoboControl *control,
GnomeCalendar *cal)
{
Bonobo_UIHandler remote_uih;
- GtkWidget *toolbar;
+ GtkWidget *toolbar, *toolbar_frame;
GnomeUIBuilderData uibdata;
BonoboUIHandler *uih = bonobo_control_get_ui_handler (control);
gchar *page_name;
@@ -588,9 +588,16 @@ calendar_control_activate (BonoboControl *control,
gtk_widget_show_all (toolbar);
+ toolbar_frame = gtk_frame_new (NULL);
+ gtk_frame_set_shadow_type (GTK_FRAME (toolbar_frame), GTK_SHADOW_OUT);
+ gtk_container_add (GTK_CONTAINER (toolbar_frame), toolbar);
+ gtk_widget_show (toolbar_frame);
+
+ gtk_widget_show_all (toolbar_frame);
+
bonobo_ui_handler_dock_add (uih, "/Toolbar",
- bonobo_object_corba_objref (BONOBO_OBJECT (bonobo_control_new (toolbar))),
- GNOME_DOCK_ITEM_BEH_EXCLUSIVE,
+ bonobo_object_corba_objref (BONOBO_OBJECT (bonobo_control_new (toolbar_frame))),
+ GNOME_DOCK_ITEM_BEH_EXCLUSIVE | GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL,
GNOME_DOCK_TOP,
1, 1, 0);