Commit 3bb49aaf authored by Jan Djärv's avatar Jan Djärv

gtkutils.c (xg_event_is_for_scrollbar): Check if grabbed widget is a scrollbar.

parent 1f2f0b28
2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
widget is a scrollbar.
2010-04-20 Kenichi Handa <handa@m17n.org>
* charset.c (char_charset): Consider Vcharset_non_preferred_head
......
......@@ -3371,8 +3371,8 @@ xg_event_is_for_scrollbar (f, event)
|| event->type == MotionNotify))
{
/* If we are releasing or moving the scroll bar, it has the grab. */
retval = gtk_grab_get_current () != 0
&& gtk_grab_get_current () != f->output_data.x->edit_widget;
GtkWidget *w = gtk_grab_get_current ();
retval = w != 0 && GTK_IS_SCROLLBAR (w);
}
return retval;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment