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 751910 - Headerbar - Buttons doesn't work until focus is changed
Headerbar - Buttons doesn't work until focus is changed
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkStyleContext
3.17.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-07-03 14:58 UTC by Alessandro Bono
Modified: 2015-07-06 13:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
C test case (1.85 KB, text/plain)
2015-07-03 14:58 UTC, Alessandro Bono
Details

Description Alessandro Bono 2015-07-03 14:58:22 UTC
Created attachment 306721 [details]
C test case

In some cases buttons of headerbar don't work until the focus is changed.
I attached a sample test:
- works with 3.16.4
- doesn't work with master
- works with master if I revert commit 91fac8b5aa44bf045b912d4b3720e84a4a51e70c
- works with master if I swap the following rows:
  gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (headerbar), FALSE);
  gtk_widget_show_all (headerbar);
Comment 1 Alessandro Bono 2015-07-03 15:15:23 UTC
"don't work" is too generic: I think that if I click on "Click Me" the callback is performed and "Look Me" becomes disabled. But the visual changes aren't showed until the focus is changed.
Comment 2 Benjamin Otte (Company) 2015-07-06 13:52:17 UTC
This should be fixed with commit 8d3737e4e376bc6dcd4d581cbd34aa2ae3396c59.