]> git.eshelyaron.com Git - emacs.git/commitdiff
Put handle on top for vertical toolbar, Bug#7051.
authorJan D <jan.h.d@swipnet.se>
Fri, 17 Sep 2010 07:00:12 +0000 (09:00 +0200)
committerJan D <jan.h.d@swipnet.se>
Fri, 17 Sep 2010 07:00:12 +0000 (09:00 +0200)
* gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
with argument top/left if tool bar is vertical/horizontal (Bug#7051).

src/ChangeLog
src/gtkutil.c

index f294f41e020e289bc1f59a9c7fb25fcf2d2b7627..8aaa9255ab5c62c9838679ae6da9ca22322cc87a 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-17  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
+       with argument top/left if tool bar is vertical/horizontal (Bug#7051).
+
 2010-09-17  Kenichi Handa  <handa@m17n.org>
 
        * ftfont.c (ftfont_check_otf): Fix previous change.
index dbd48eb5272903b80cee9a57465f311dd719cff2..9356250eb71706b16079152dfa16954a7afa1b08 100644 (file)
@@ -3974,6 +3974,8 @@ xg_pack_tool_bar (FRAME_PTR f, Lisp_Object pos)
 
   if (into_hbox) 
     {
+      gtk_handle_box_set_handle_position (GTK_HANDLE_BOX (x->handlebox_widget),
+                                          GTK_POS_TOP);
       gtk_box_pack_start (GTK_BOX (x->hbox_widget), x->handlebox_widget,
                           FALSE, FALSE, 0);
 
@@ -3986,6 +3988,8 @@ xg_pack_tool_bar (FRAME_PTR f, Lisp_Object pos)
   else
     {
       int vbox_pos = x->menubar_widget ? 1 : 0;
+      gtk_handle_box_set_handle_position (GTK_HANDLE_BOX (x->handlebox_widget),
+                                          GTK_POS_LEFT);
       gtk_box_pack_start (GTK_BOX (x->vbox_widget), x->handlebox_widget,
                           FALSE, FALSE, 0);