Skip to content

Commit

Permalink
Session: Fix dialog, gresource suspend icon (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Jan 30, 2024
1 parent 5bb42ad commit a537c2b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions data/icons/system-suspend.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions data/quick-settings.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<gresources>
<gresource prefix="org/elementary/wingpanel/icons">
<file alias="scalable/status/dark-mode-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/dark-mode.svg</file>
<file alias="scalable/status/system-suspend-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/system-suspend.svg</file>
<file alias="scalable/status/quick-settings-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/quick-settings.svg</file>
<file alias="scalable/status/quick-settings-rotation-allowed-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/rotation-allowed.svg</file>
<file alias="scalable/status/quick-settings-rotation-locked-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/rotation-locked.svg</file>
Expand Down
5 changes: 5 additions & 0 deletions src/PopoverWidget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ public class QuickSettings.PopoverWidget : Gtk.Box {
keybinding_settings.get_strv ("screensaver"), _("Lock")
);
});

EndSessionDialogServer.init ();
EndSessionDialogServer.get_default ().show_dialog.connect (
(type, timestamp) => show_dialog ((EndSessionDialogType) type, timestamp)
);
}

private void update_navigation () {
Expand Down
1 change: 1 addition & 0 deletions src/Widgets/EndSessionDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public class QuickSettings.EndSessionDialog : Hdy.Window {
grid.attach (primary_label, 1, 0);
grid.attach (secondary_label, 1, 1);
grid.attach (action_area, 0, 2, 2, 1);
grid.show_all ();

deletable = false;
resizable = false;
Expand Down

0 comments on commit a537c2b

Please sign in to comment.