diff options
author | Cody Russell <bratsche@gnome.org> | 2008-08-01 03:30:50 +0000 |
---|---|---|
committer | Cody Russell <bratsche@src.gnome.org> | 2008-08-01 03:30:50 +0000 |
commit | 4e3c97b3f2ebb9c12f68cf4ffbc6d3758bacf4ae (patch) | |
tree | 78f5b9238279841655745582d15236ce403198d6 /gtk/gtkbutton.c | |
parent | e9d978dff9f9b18eaac6c4920fb5abf7245d839d (diff) | |
download | gtk+-4e3c97b3f2ebb9c12f68cf4ffbc6d3758bacf4ae.tar.gz |
Bug 56070 – Can't click button after setting it sensitive.
2008-07-31 Cody Russell <bratsche@gnome.org>
Bug 56070 – Can't click button after setting it sensitive.
* gtk/gtkwidget.[ch]
* gtk/gtkwindow.c
* gtk/gtkmain.c
* gtk/gtkbutton.c
* gtk/gtkprivate.h
* gdk/gdkevents.h: Synthesize crossing events events where necessary.
* gtk/tests/crossingevents.c: Add unit tests for crossing events.
Big thanks to Ed Catmur, Matthias Clasen, and everyone else who
has worked on and helped out with this.
svn path=/trunk/; revision=20924
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r-- | gtk/gtkbutton.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 606b33d70a..58a6926125 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -1457,7 +1457,8 @@ gtk_button_leave_notify (GtkWidget *widget, event_widget = gtk_get_event_widget ((GdkEvent*) event); if ((event_widget == widget) && - (event->detail != GDK_NOTIFY_INFERIOR)) + (event->detail != GDK_NOTIFY_INFERIOR) && + (GTK_WIDGET_SENSITIVE (event_widget))) { button->in_button = FALSE; gtk_button_leave (button); |