gtkutils.c (xg_event_is_for_scrollbar): Check if grabbed widget is a scrollbar.
This commit is contained in:
parent
1f2f0b2818
commit
3bb49aaf02
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue