summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoresoleyman <emil@soleyman.com>2020-08-12 12:22:01 -0500
committerDavid King <dking@redhat.com>2021-05-14 10:30:30 +0100
commite42a3e55d4d82984779ce8a86aaa805897c9e438 (patch)
treec25b85c49e77b42dca40c4157075f3c04e562c0e
parent3483a02ca77233dcec5af60fe7fc878f77db1adc (diff)
downloadcheese-e42a3e55d4d82984779ce8a86aaa805897c9e438.tar.gz
Allow headerbar to appear on all desktops
Removed gtk_dialogs_use_header() and accompanying code to allow the headerbar to appear in GNOME as well as other desktops. Tested with XFCE and it works as expected. https://gitlab.gnome.org/GNOME/cheese/-/issues/62
-rw-r--r--src/cheese-window.vala10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index bded2b54..e2264fdf 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -123,14 +123,8 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
GLib.Object (application: application);
header_bar = header_bar_ui.get_object ("header_bar") as Gtk.HeaderBar;
-
- Gtk.Settings settings = Gtk.Settings.get_default ();
-
- if (settings.gtk_dialogs_use_header)
- {
- header_bar.visible = true;
- this.set_titlebar (header_bar);
- }
+ header_bar.visible = true;
+ this.set_titlebar (header_bar);
}
private void set_window_title (string title)