From 318a04c60bf855b832b5c90e220bf3b576e1273e Mon Sep 17 00:00:00 2001 From: Jan D Date: Fri, 17 Sep 2010 09:00:12 +0200 Subject: [PATCH] Put handle on top for vertical toolbar, Bug#7051. * 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 | 5 +++++ src/gtkutil.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index f294f41e020..8aaa9255ab5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-09-17 Jan Djärv + + * 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 * ftfont.c (ftfont_check_otf): Fix previous change. diff --git a/src/gtkutil.c b/src/gtkutil.c index dbd48eb5272..9356250eb71 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -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); -- 2.39.2