]> git.eshelyaron.com Git - emacs.git/commitdiff
(xg_frame_resized): Remove check if rows/columns have
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 18 Dec 2008 18:48:08 +0000 (18:48 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 18 Dec 2008 18:48:08 +0000 (18:48 +0000)
changed.
(xg_tool_bar_proxy_callback): Put focus on the frame after we have
clicked on a detached tool bar button.

src/ChangeLog
src/gtkutil.c

index ceff2a5305c4707c94ffbf4c5f6e730a5b044a42..8267c7764c1311354b5dc4679149fff44ab0c9e3 100644 (file)
@@ -2,6 +2,8 @@
 
        * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
        changed.
+       (xg_tool_bar_proxy_callback): Put focus on the frame after we have
+       clicked on a detached tool bar button.
 
 2008-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
 
index 6b615539ffb6801e828b2a13d14f4ac43aed795e..5f55e6daef62f4c1010a7a6cfd937516942c7317 100644 (file)
@@ -3478,6 +3478,13 @@ xg_tool_bar_proxy_callback (w, client_data)
   GtkWidget *wbutton = GTK_WIDGET (g_object_get_data (G_OBJECT (w),
                                                       XG_TOOL_BAR_PROXY_BUTTON));
   xg_tool_bar_callback (wbutton, client_data);
+  FRAME_PTR f = (FRAME_PTR) g_object_get_data (G_OBJECT (wbutton),
+                                               XG_FRAME_DATA);
+  /* Put focus back to the frame after we have clicked on a detached
+     tool bar button. */
+  Lisp_Object frame;
+  XSETFRAME (frame, f);
+  Fx_focus_frame (frame);
 }
 
 /* This callback is called when a tool item should create a proxy item,