Mercurial > emacs
changeset 100501:50d559e0f461
(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.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Thu, 18 Dec 2008 18:47:59 +0000 |
parents | e7cd485b79ff |
children | 89920deae594 |
files | src/gtkutil.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkutil.c Thu Dec 18 18:44:31 2008 +0000 +++ b/src/gtkutil.c Thu Dec 18 18:47:59 2008 +0000 @@ -3478,6 +3478,13 @@ 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,