Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions schemas/io.elementary.desktop.wingpanel.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
<summary>Sets if scrolling on the panel switches workspaces.</summary>
<description>Sets if scrolling on the panel switches workspaces.</description>
</key>
<key type="i" name="height">
<default>-1</default>
<summary>The current allocated height of the wingpanel widget.</summary>
<description>The current allocated height of the wingpanel widget.</description>
</key>
</schema>

<schema path="/io/elementary/panel/keybindings/" id="io.elementary.panel.keybindings">
Expand Down
2 changes: 2 additions & 0 deletions src/PanelWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public class Wingpanel.PanelWindow : Gtk.Window {
Services.BackgroundManager.initialize (panel.get_height ());
initialized_background_manager = true;
}

Widgets.Panel.panel_settings.set_int ("height", get_height ());
}

private void on_enter_monitor (Gdk.Monitor new_monitor) {
Expand Down
6 changes: 5 additions & 1 deletion src/Widgets/Panel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

public class Wingpanel.Widgets.Panel : Granite.Bin {
private static Settings panel_settings = new Settings ("io.elementary.desktop.wingpanel");
public static Settings panel_settings { get; private set; }

public Services.PopoverManager popover_manager { get; construct; }

Expand All @@ -37,6 +37,10 @@ public class Wingpanel.Widgets.Panel : Granite.Bin {
set_css_name ("panel");
}

static construct {
panel_settings = new Settings ("io.elementary.desktop.wingpanel");
}

construct {
hexpand = true;
vexpand = true;
Expand Down