After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 640809 - GtkButton cannot be set as insensitve in ::clicked callback
GtkButton cannot be set as insensitve in ::clicked callback
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.99.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-01-28 10:50 UTC by Jonny Lamb
Modified: 2011-01-28 12:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test app (581 bytes, text/x-csrc)
2011-01-28 10:50 UTC, Jonny Lamb
Details

Description Jonny Lamb 2011-01-28 10:50:55 UTC
Created attachment 179499 [details]
test app

See the attached test code. Clicking the button should make it insensitive but this no longer works with GTK+ 3.
Comment 1 Carlos Garnacho 2011-01-28 12:00:30 UTC
This bug was fixed in this commit:

commit a0e1fa9e77a0082afda4b86d2f50f78c54a00ee7
Author: Carlos Garnacho <carlosg@gnome.org>
Date:   Sun Jan 23 18:04:41 2011 +0100

    Gtk(Toggle)Button: preserve untouched state flags when updating state.
    
    Partly fixes bug #640282, noticed by Christian Persch. buttons were
    clobbering the insensitive flag when updating their state.