Skip to content

Updated folded_notify signal

libhandy/libadwaita has changed the name of the "fold" property of gtk::Leaflet to "folded". This causes the gtk::HeaderBar or to be more precise it's title buttons to misbehave in the sense that both parts of the header Leaflet can show them, as u/AshkanLaei found out on the r/gnome subreddit. It's even simpler than he describes. All that needs to be done in order to trigger it, is to

  1. open gnome-tweaks
  2. shrink gnome-tweaks in x-axis in order for the leaflet to fold
  3. press the "back" button
  4. expand gnome-tweaks in x-axis in order for the leaflet to unfold
  5. both parts of the header leaflet have titlebuttons: 0.

This commit is a quick fix for the issue, however it prints out a gtk warning each time a new page gets selected and the leaflet gets folded:

 (gnome-tweaks:12024): Gtk-WARNING **: 21:04:37.916: gtk_widget_size_allocate(): attempt to allocate widget with width -23 and height 16

however I was unable to see any graphical issue.

Merge request reports