Skip to content

Commit 40b1a10

Browse files
authored
cinnamon-session-quit.py: add missing window icon (#170)
1 parent 128fe7f commit 40b1a10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cinnamon-session-quit/cinnamon-session-quit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def run_dialog(self):
253253
self.button_logout.set_visible(True)
254254
default_button = self.button_logout
255255
self.action_icon.set_from_icon_name("system-log-out-symbolic", Gtk.IconSize.DIALOG)
256+
self.window.set_icon_name("system-log-out")
256257
elif self.mode == Action.SHUTDOWN:
257258
self.dialog_label.set_text(_("Shut down this system now?"))
258259
self.button_suspend.set_visible(can_suspend)
@@ -261,6 +262,7 @@ def run_dialog(self):
261262
self.button_shutdown.set_visible(can_stop)
262263
default_button = self.button_shutdown
263264
self.action_icon.set_from_icon_name("system-shutdown-symbolic", Gtk.IconSize.DIALOG)
265+
self.window.set_icon_name("system-shutdown")
264266
elif self.mode == Action.RESTART:
265267
if not can_restart:
266268
print("Restart not available")
@@ -270,6 +272,7 @@ def run_dialog(self):
270272
self.button_restart.set_visible(True)
271273
default_button = self.button_restart
272274
self.action_icon.set_from_icon_name("system-reboot-symbolic", Gtk.IconSize.DIALOG)
275+
self.window.set_icon_name("system-reboot")
273276

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

0 commit comments

Comments
 (0)