[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src gtkutil.c
From: |
Jan Djärv |
Subject: |
[Emacs-diffs] emacs/src gtkutil.c |
Date: |
Thu, 18 Dec 2008 18:48:00 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Jan Djärv <jhd> 08/12/18 18:48:00
Modified files:
src : gtkutil.c
Log message:
(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.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/gtkutil.c?cvsroot=emacs&r1=1.142&r2=1.143
Patches:
Index: gtkutil.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/gtkutil.c,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -b -r1.142 -r1.143
--- gtkutil.c 18 Dec 2008 17:45:12 -0000 1.142
+++ gtkutil.c 18 Dec 2008 18:47:59 -0000 1.143
@@ -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,