testlogout: actually quit if told to
https://bugzilla.gnome.org/show_bug.cgi?id=667705
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
static GtkWidget *win;
|
||||||
static GtkWidget *inhibit_entry;
|
static GtkWidget *inhibit_entry;
|
||||||
static GtkWidget *inhibit_logout;
|
static GtkWidget *inhibit_logout;
|
||||||
static GtkWidget *inhibit_switch;
|
static GtkWidget *inhibit_switch;
|
||||||
@ -98,7 +99,6 @@ static void
|
|||||||
activate (GtkApplication *app,
|
activate (GtkApplication *app,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
GtkWidget *win;
|
|
||||||
GtkWidget *box;
|
GtkWidget *box;
|
||||||
GtkWidget *separator;
|
GtkWidget *separator;
|
||||||
GtkWidget *grid;
|
GtkWidget *grid;
|
||||||
@ -179,6 +179,7 @@ quit (GtkApplication *app,
|
|||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
g_print ("Received quit\n");
|
g_print ("Received quit\n");
|
||||||
|
gtk_widget_destroy (win);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|||||||
Reference in New Issue
Block a user