aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2009-03-14 15:12:33 +0000
committerJan Djärv2009-03-14 15:12:33 +0000
commit4a02423f72339dad31ff7fecf3007370af1f94ef (patch)
tree1b6e76369c68248bdaf74de989331cfa95dc9c5c /src
parentdd0bed852bc2c47f9edd389a12afeb156c46a734 (diff)
downloademacs-4a02423f72339dad31ff7fecf3007370af1f94ef.tar.gz
emacs-4a02423f72339dad31ff7fecf3007370af1f94ef.zip
* gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
after clicking in a detached tool bar. (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/gtkutil.c11
2 files changed, 11 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 71c7fa01fbd..c980983d540 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12009-03-14 Stephen Berman <stephen.berman@gmx.net>
2
3 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4 after clicking in a detached tool bar.
5 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6
12009-03-13 Stefan Monnier <monnier@iro.umontreal.ca> 72009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another 9 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 39781cfd56f..8e3e24b6225 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -3457,10 +3457,14 @@ xg_tool_bar_callback (w, client_data)
3457 event.frame_or_window = frame; 3457 event.frame_or_window = frame;
3458 event.arg = key; 3458 event.arg = key;
3459 /* Convert between the modifier bits GDK uses and the modifier bits 3459 /* Convert between the modifier bits GDK uses and the modifier bits
3460 Emacs uses. This assumes GDK an X masks are the same, which they are when 3460 Emacs uses. This assumes GDK and X masks are the same, which they are when
3461 this is written. */ 3461 this is written. */
3462 event.modifiers = x_x_to_emacs_modifiers (FRAME_X_DISPLAY_INFO (f), mod); 3462 event.modifiers = x_x_to_emacs_modifiers (FRAME_X_DISPLAY_INFO (f), mod);
3463 kbd_buffer_store_event (&event); 3463 kbd_buffer_store_event (&event);
3464
3465 /* Return focus to the frame after we have clicked on a detached
3466 tool bar button. */
3467 Fx_focus_frame (frame);
3464} 3468}
3465 3469
3466/* Callback function invoked when a tool bar item is pressed in a detached 3470/* Callback function invoked when a tool bar item is pressed in a detached
@@ -3480,11 +3484,6 @@ xg_tool_bar_proxy_callback (w, client_data)
3480 xg_tool_bar_callback (wbutton, client_data); 3484 xg_tool_bar_callback (wbutton, client_data);
3481 FRAME_PTR f = (FRAME_PTR) g_object_get_data (G_OBJECT (wbutton), 3485 FRAME_PTR f = (FRAME_PTR) g_object_get_data (G_OBJECT (wbutton),
3482 XG_FRAME_DATA); 3486 XG_FRAME_DATA);
3483 /* Put focus back to the frame after we have clicked on a detached
3484 tool bar button. */
3485 Lisp_Object frame;
3486 XSETFRAME (frame, f);
3487 Fx_focus_frame (frame);
3488} 3487}
3489 3488
3490/* This callback is called when a tool item should create a proxy item, 3489/* This callback is called when a tool item should create a proxy item,