Skip to content

Commit

Permalink
Selectively disable titlebar decorations
Browse files Browse the repository at this point in the history
Instead of forcing GtkHeaderBar->show_close_button to FALSE, replace
the string used to add the standard decorations with a new string that
doesn't contain icon, minimize, maximize or close.

This means that the menu button will now be shown, if requested, and
not added as a single entry on an extra menubar, as has happened in
newer Gtk+3 versions (which makes the interface unintuitive, and in
older Gtk+3 versions the menu button was gone completely).

This means we have to override a lot more functions from GtkHeaderBar's
API though. Also, we need to hack g_object_get, as that is used from
within GtkHeaderBar to determine the default string from the global
GSettings when no specific one is set for a given widget.
  • Loading branch information
chris-se committed May 22, 2016
1 parent c96202d commit 6417cf7
Showing 1 changed file with 450 additions and 9 deletions.
Loading

0 comments on commit 6417cf7

Please sign in to comment.