From 6506723d2c993bd867d3f543c797b989883403c1 Mon Sep 17 00:00:00 2001 From: gabrielfin Date: Sun, 2 Jun 2019 15:44:27 -0300 Subject: [PATCH] Use same theme as Marco --- data/org.mate.window-applets.gschema.xml | 5 --- window-buttons-applet/dialog.ui | 42 ------------------- .../window-buttons-applet.vala | 6 +-- 3 files changed, 2 insertions(+), 51 deletions(-) diff --git a/data/org.mate.window-applets.gschema.xml b/data/org.mate.window-applets.gschema.xml index f350370..48adcad 100644 --- a/data/org.mate.window-applets.gschema.xml +++ b/data/org.mate.window-applets.gschema.xml @@ -27,11 +27,6 @@ - - 'Black' - Buttons theme - - 8 Spacing betwene buttons diff --git a/window-buttons-applet/dialog.ui b/window-buttons-applet/dialog.ui index 9e13dee..05ec9d7 100644 --- a/window-buttons-applet/dialog.ui +++ b/window-buttons-applet/dialog.ui @@ -149,48 +149,6 @@ 1 - - - True - False - - - True - False - start - Theme : - - - True - True - 2 - 0 - - - - - True - True - end - center - 40 - none - GTK_INPUT_HINT_NO_SPELLCHECK | GTK_INPUT_HINT_LOWERCASE | GTK_INPUT_HINT_NONE - - - True - True - 2 - 1 - - - - - False - True - 2 - - True diff --git a/window-buttons-applet/window-buttons-applet.vala b/window-buttons-applet/window-buttons-applet.vala index 5aa2290..de48788 100644 --- a/window-buttons-applet/window-buttons-applet.vala +++ b/window-buttons-applet/window-buttons-applet.vala @@ -35,7 +35,7 @@ namespace WindowButtonsApplet{ this.change_theme(); this.change_spacing(); - this.gsettings.changed["theme"].connect(this.change_theme); + this.marco_gsettings.changed["theme"].connect(this.change_theme); this.gsettings.changed["spacing"].connect(this.change_spacing); this.marco_gsettings.changed["button_layout"].connect(this.change_layout); @@ -148,7 +148,7 @@ namespace WindowButtonsApplet{ } public void change_theme(){ - string theme_name = gsettings.get_string("theme"); + string theme_name = marco_gsettings.get_string("theme"); WindowButtonsTheme theme = new WindowButtonsTheme(theme_name); @@ -270,14 +270,12 @@ namespace WindowButtonsApplet{ widget_container.gsettings.bind("use-marco-layout",builder.get_object("use-marco-layout"),"state",SettingsBindFlags.DEFAULT); widget_container.gsettings.bind("buttons-layout",builder.get_object("layout"),"text",SettingsBindFlags.DEFAULT); - widget_container.gsettings.bind("theme",builder.get_object("theme"),"text",SettingsBindFlags.DEFAULT); widget_container.gsettings.bind("spacing",builder.get_object("spacing"),"value",SettingsBindFlags.DEFAULT); widget_container.gsettings.bind("padding",builder.get_object("padding"),"value",SettingsBindFlags.DEFAULT); widget_container.gsettings.bind("behaviour",builder.get_object("behaviour"),"active_id",SettingsBindFlags.DEFAULT); widget_container.gsettings.changed["use-marco-layout"].connect(widget_container.change_layout); widget_container.gsettings.changed["buttons-layout"].connect(widget_container.change_layout); - widget_container.gsettings.changed["theme"].connect(widget_container.change_theme); widget_container.gsettings.changed["spacing"].connect( (key) => { widget_container.change_size(applet.get_size()); } ); widget_container.gsettings.changed["padding"].connect( (key) => { widget_container.change_size(applet.get_size()); } ); widget_container.gsettings.changed["behaviour"].connect( (key) => { widget_container.reload(); } );