summaryrefslogtreecommitdiff
path: root/tests/testlogout.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-01-11 11:52:23 -0500
committerDan Winship <danw@gnome.org>2012-01-11 12:00:06 -0500
commit9c7d795d5a24587c8169c95564da01dcb7f90573 (patch)
tree2b0569481532907badaf649aa620aa111f901cad /tests/testlogout.c
parent05c484dcb039aec955fd4592990704bea25fe7a7 (diff)
downloadgtk+-9c7d795d5a24587c8169c95564da01dcb7f90573.tar.gz
testlogout: actually quit if told to
https://bugzilla.gnome.org/show_bug.cgi?id=667705
Diffstat (limited to 'tests/testlogout.c')
-rw-r--r--tests/testlogout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testlogout.c b/tests/testlogout.c
index 3cd9ecb05e..6c17f1a936 100644
--- a/tests/testlogout.c
+++ b/tests/testlogout.c
@@ -1,5 +1,6 @@
#include <gtk/gtk.h>
+static GtkWidget *win;
static GtkWidget *inhibit_entry;
static GtkWidget *inhibit_logout;
static GtkWidget *inhibit_switch;
@@ -98,7 +99,6 @@ static void
activate (GtkApplication *app,
gpointer data)
{
- GtkWidget *win;
GtkWidget *box;
GtkWidget *separator;
GtkWidget *grid;
@@ -179,6 +179,7 @@ quit (GtkApplication *app,
gpointer data)
{
g_print ("Received quit\n");
+ gtk_widget_destroy (win);
}
int