Skip to content

Commit

Permalink
Support Gnome 40
Browse files Browse the repository at this point in the history
  • Loading branch information
p91paul committed Apr 9, 2021
1 parent c14c68d commit e909ee2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"url": "https://github.com/arelange/gnome-shell-extension-hibernate-status",
"description": "Adds a Hibernate button in Status menu. Using Alt modifier, you can also select Hybrid Sleep instead.",
"shell-version": [
"3.38"
"40"
]
}
8 changes: 5 additions & 3 deletions prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ var Prefs = class Prefs {
function init() { }
function buildPrefsWidget() {
let frame = new Gtk.Box({orientation: Gtk.Orientation.VERTICAL,
border_width: 10});
'margin-top': 10,
'margin-end': 10,
'margin-bottom': 10,
'margin-start': 10});
let setting_label = new Gtk.Label({label: "This extension has no settings available",
xalign: 0 });
frame.pack_start(setting_label, true, true, 0);
frame.show_all();
frame.append(setting_label);
return frame;
}

0 comments on commit e909ee2

Please sign in to comment.