aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-01 11:55:53 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-01 11:55:53 +0800
commitca2aa41893e603f39466c23a9a650f9a496e13a9 (patch)
treebab5e92d757237f40bee0ac858a82b5d0196a6e2 /addressbook
parentfdedf8998b91cd21a85730160896b733e985589f (diff)
downloadgsoc2013-evolution-ca2aa41893e603f39466c23a9a650f9a496e13a9.tar
gsoc2013-evolution-ca2aa41893e603f39466c23a9a650f9a496e13a9.tar.gz
gsoc2013-evolution-ca2aa41893e603f39466c23a9a650f9a496e13a9.tar.bz2
gsoc2013-evolution-ca2aa41893e603f39466c23a9a650f9a496e13a9.tar.lz
gsoc2013-evolution-ca2aa41893e603f39466c23a9a650f9a496e13a9.tar.xz
gsoc2013-evolution-ca2aa41893e603f39466c23a9a650f9a496e13a9.tar.zst
gsoc2013-evolution-ca2aa41893e603f39466c23a9a650f9a496e13a9.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=3321
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/component/addressbook.c11
2 files changed, 16 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 6ba494e18e..f10c26c2fc 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2000-06-01 Ettore Perazzoli <ettore@helixcode.com>
+
+ * gui/component/addressbook.c (control_activate): Put the toolbar
+ into a frame to make it look like standard GNOME toolbars. Also,
+ set `GNOME_DOCK_ITEM_BEH_NEVER_VERTICAL' so that it does not do
+ evil things when its moved to the left or the right of the window.
+
2000-05-30 Christopher James Lahey <clahey@helixcode.com>
* gui/component/e-cardlist-model.c,
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index a128648d76..369400f4a1 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -365,7 +365,7 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
AddressbookView *view)
{
Bonobo_UIHandler remote_uih;
- GtkWidget *toolbar;
+ GtkWidget *toolbar, *toolbar_frame;
BonoboControl *toolbar_control;
GtkWidget *hbox = gtk_hbox_new (FALSE, 0);
GtkWidget *quick_search_widget;
@@ -425,7 +425,14 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
gtk_widget_show_all (hbox);
- toolbar_control = bonobo_control_new (hbox);
+ 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), hbox);
+ gtk_widget_show (toolbar_frame);
+
+ gtk_widget_show_all (toolbar_frame);
+
+ toolbar_control = bonobo_control_new (toolbar_frame);
bonobo_ui_handler_dock_add (
uih, "/Toolbar",
bonobo_object_corba_objref (BONOBO_OBJECT (toolbar_control)),