aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2010-04-20 13:38:30 +0200
committerJan Djärv2010-04-20 13:38:30 +0200
commit3bb49aaf02507540cefed269bd410d318f8c81b4 (patch)
tree8231baff10ab9552abbc33c5929f3fb9f842042c /src
parent1f2f0b2818b884e44db792729a92ccff2f766a26 (diff)
downloademacs-3bb49aaf02507540cefed269bd410d318f8c81b4.tar.gz
emacs-3bb49aaf02507540cefed269bd410d318f8c81b4.zip
gtkutils.c (xg_event_is_for_scrollbar): Check if grabbed widget is a scrollbar.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/gtkutil.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fb4bd4de1cc..4cb7383144d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-04-20 Jan Djärv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4 widget is a scrollbar.
5
12010-04-20 Kenichi Handa <handa@m17n.org> 62010-04-20 Kenichi Handa <handa@m17n.org>
2 7
3 * charset.c (char_charset): Consider Vcharset_non_preferred_head 8 * charset.c (char_charset): Consider Vcharset_non_preferred_head
diff --git a/src/gtkutil.c b/src/gtkutil.c
index c2b425b4562..b3805511bc9 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -3371,8 +3371,8 @@ xg_event_is_for_scrollbar (f, event)
3371 || event->type == MotionNotify)) 3371 || event->type == MotionNotify))
3372 { 3372 {
3373 /* If we are releasing or moving the scroll bar, it has the grab. */ 3373 /* If we are releasing or moving the scroll bar, it has the grab. */
3374 retval = gtk_grab_get_current () != 0 3374 GtkWidget *w = gtk_grab_get_current ();
3375 && gtk_grab_get_current () != f->output_data.x->edit_widget; 3375 retval = w != 0 && GTK_IS_SCROLLBAR (w);
3376 } 3376 }
3377 3377
3378 return retval; 3378 return retval;