]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[viewer] Quit on window close when not in icon mode.
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 29 Nov 2009 22:30:29 +0000 (22:30 +0000)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 29 Nov 2009 22:30:29 +0000 (22:30 +0000)
Previously, in non-icon mode when clicking on the window decoration close, the
window would hide and carry on running. It should quit.

https://bugs.freedesktop.org/show_bug.cgi?id=20228

src/viewer/plymouth-log-viewer.c

index e103d6f67f06c631c09c730ee761ac1f79de28fd..ca4d49863ecc8f59d7094db068caad22ffbada07 100644 (file)
@@ -259,8 +259,8 @@ create_window (GtkTextBuffer *buffer)
   gtk_box_pack_start (GTK_BOX (box), bbox, FALSE, TRUE, 6);
   gtk_box_pack_start (GTK_BOX (bbox), close_button, FALSE, TRUE, 6);
 
-  g_signal_connect (window, "delete-event", 
-                    G_CALLBACK (gtk_widget_hide_on_delete), NULL);
+  g_signal_connect (window, "delete-event",
+                    G_CALLBACK (close_window), NULL);
   g_signal_connect_swapped (close_button, "clicked", 
                             G_CALLBACK (close_window), window);