Skip to content

Commit

Permalink
cinnamon-session-quit.py: add missing window icon
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcw authored Apr 4, 2024
1 parent 128fe7f commit c1df4a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cinnamon-session-quit/cinnamon-session-quit.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def run_dialog(self):
self.button_logout.set_visible(True)
default_button = self.button_logout
self.action_icon.set_from_icon_name("system-log-out-symbolic", Gtk.IconSize.DIALOG)
self.window.set_icon_name("system-log-out")
elif self.mode == Action.SHUTDOWN:
self.dialog_label.set_text(_("Shut down this system now?"))
self.button_suspend.set_visible(can_suspend)
Expand All @@ -261,6 +262,7 @@ def run_dialog(self):
self.button_shutdown.set_visible(can_stop)
default_button = self.button_shutdown
self.action_icon.set_from_icon_name("system-shutdown-symbolic", Gtk.IconSize.DIALOG)
self.window.set_icon_name("system-shutdown")
elif self.mode == Action.RESTART:
if not can_restart:
print("Restart not available")
Expand All @@ -270,6 +272,7 @@ def run_dialog(self):
self.button_restart.set_visible(True)
default_button = self.button_restart
self.action_icon.set_from_icon_name("system-reboot-symbolic", Gtk.IconSize.DIALOG)
self.window.set_icon_name("system-reboot")

default_button.get_style_context().add_class("destructive-action")

Expand Down

0 comments on commit c1df4a3

Please sign in to comment.