diff options
author | Ted Gould <ted@gould.cx> | 2009-11-24 10:19:34 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2009-11-24 10:19:34 -0600 |
commit | b6f78fa67858712e0345c233575104902be9e5dc (patch) | |
tree | 54450f5fccbee4069c20ab0d74b5cc8a5b847071 /tools | |
parent | cd27c1b5e235076bed739375900e986d89d28e2b (diff) | |
download | libayatana-indicator-b6f78fa67858712e0345c233575104902be9e5dc.tar.gz libayatana-indicator-b6f78fa67858712e0345c233575104902be9e5dc.tar.bz2 libayatana-indicator-b6f78fa67858712e0345c233575104902be9e5dc.zip |
Stopping the app when the window closes.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/indicator-loader.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/indicator-loader.c b/tools/indicator-loader.c index 9857647..feb0344 100644 --- a/tools/indicator-loader.c +++ b/tools/indicator-loader.c @@ -69,6 +69,13 @@ load_module (const gchar * name, GtkWidget * menu) return TRUE; } +static void +destroy (gpointer data) +{ + gtk_main_quit(); + return; +} + int main (int argc, char ** argv) { @@ -86,6 +93,8 @@ main (int argc, char ** argv) } GtkWidget * window = gtk_window_new(GTK_WINDOW_TOPLEVEL); + g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(destroy), NULL); + gtk_container_add(GTK_CONTAINER(window), menubar); gtk_widget_show(menubar); |