aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-25 01:52:22 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-25 01:52:22 +0000
commitcbabe81865beb7fdd42d7031d18edb95e74ca7b5 (patch)
tree9b3b18b6e246162d2f401c9431664e1e62e7e3ec
parentb2dc92f5fbcc118cd723881c6dca3ebbdbecae4c (diff)
downloadgnunet-gtk-cbabe81865beb7fdd42d7031d18edb95e74ca7b5.tar.gz
gnunet-gtk-cbabe81865beb7fdd42d7031d18edb95e74ca7b5.zip
-LRN: object might be a menu item (if the window was closed via File->Quit),
not the window.
-rw-r--r--src/fs/gnunet-fs-gtk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c
index 63eae452..ccc05c15 100644
--- a/src/fs/gnunet-fs-gtk.c
+++ b/src/fs/gnunet-fs-gtk.c
@@ -172,7 +172,8 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
172void 172void
173GNUNET_GTK_quit_cb (GObject * object, gpointer user_data) 173GNUNET_GTK_quit_cb (GObject * object, gpointer user_data)
174{ 174{
175 GtkWidget *main_window = GTK_WIDGET (object); 175 GtkWidget *main_window = GTK_WIDGET (GNUNET_FS_GTK_get_main_window_object (
176 "GNUNET_GTK_main_window"));
176 177
177 main_window_save_position (main_window); 178 main_window_save_position (main_window);
178 179