diff options
author | Teemu Ikonen <tpikonen@mailbox.org> | 2022-09-12 19:13:39 +0300 |
---|---|---|
committer | Marvin W <git@larma.de> | 2023-01-24 19:20:43 +0100 |
commit | 04acab82c98f5d9cdb798ba3baac8d73b097b1df (patch) | |
tree | 68351b08a8176feee4542e664a14082ae2dc5234 /main/src/ui | |
parent | ba9462503c0561dbe8306e3bf6aa49392bfc8078 (diff) | |
download | dino-04acab82c98f5d9cdb798ba3baac8d73b097b1df.tar.gz dino-04acab82c98f5d9cdb798ba3baac8d73b097b1df.zip |
Remove set_window_buttons() from MainWindow
Diffstat (limited to 'main/src/ui')
-rw-r--r-- | main/src/ui/main_window.vala | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/main/src/ui/main_window.vala b/main/src/ui/main_window.vala index 18fd5240..4d660f82 100644 --- a/main/src/ui/main_window.vala +++ b/main/src/ui/main_window.vala @@ -51,8 +51,6 @@ public class MainWindow : Adw.Window { this.add_css_class("dino-main"); - Gtk.Settings.get_default().notify["gtk-decoration-layout"].connect(set_window_buttons); - ((Widget)this).realize.connect(set_window_buttons); ((Widget)this).realize.connect(restore_window_size); setup_unified(); @@ -98,18 +96,6 @@ public class MainWindow : Adw.Window { right_box.prepend(conversation_titlebar.get_widget()); } - private void set_window_buttons() { - if (!Util.use_csd()) return; - Gtk.Settings? gtk_settings = Gtk.Settings.get_default(); - if (gtk_settings == null) return; - - string[] buttons = gtk_settings.gtk_decoration_layout.split(":"); - HeaderBar conversation_headerbar = this.conversation_titlebar.get_widget() as HeaderBar; - conversation_headerbar.decoration_layout = ((buttons.length == 2) ? ":" + buttons[1] : ""); - HeaderBar conversation_list_headerbar = this.conversation_list_titlebar as HeaderBar; - conversation_list_headerbar.decoration_layout = buttons[0] + ":"; - } - private void setup_stack() { stack.add_named(box, "main"); stack.add_named(welcome_placeholder, "welcome_placeholder"); |