[gnome-keyring] gcr: Stop gcr-viewer process correctly when Close is clicked
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] gcr: Stop gcr-viewer process correctly when Close is clicked
- Date: Wed, 5 Oct 2011 08:27:11 +0000 (UTC)
commit f1d52789707ecc57fb4a7e673b825a7d5ec3c485
Author: Stef Walter <stefw collabora co uk>
Date: Wed Oct 5 10:26:54 2011 +0200
gcr: Stop gcr-viewer process correctly when Close is clicked
gcr/gcr-viewer-tool.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gcr/gcr-viewer-tool.c b/gcr/gcr-viewer-tool.c
index 5ffb2a2..e3510f4 100644
--- a/gcr/gcr-viewer-tool.c
+++ b/gcr/gcr-viewer-tool.c
@@ -72,12 +72,12 @@ on_idle_load_files (gpointer user_data)
return FALSE; /* Don't run this again */
}
-static gboolean
-on_window_delete_event (GtkWidget *widget, GdkEvent *event, gpointer unused)
+static void
+on_window_destroy (GtkWidget *widget,
+ gpointer unused)
{
- gtk_main_quit ();
gtk_widget_hide (widget);
- return TRUE;
+ gtk_main_quit ();
}
int
@@ -123,9 +123,8 @@ main (int argc, char *argv[])
gtk_widget_show (GTK_WIDGET (window));
g_idle_add (on_idle_load_files, window);
- g_signal_connect (window, "delete-event", G_CALLBACK (on_window_delete_event), NULL);
+ g_signal_connect (window, "destroy", G_CALLBACK (on_window_destroy), NULL);
gtk_main ();
- gtk_widget_destroy (GTK_WIDGET (window));
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]