diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-25 01:52:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-25 01:52:22 +0000 |
commit | cbabe81865beb7fdd42d7031d18edb95e74ca7b5 (patch) | |
tree | 9b3b18b6e246162d2f401c9431664e1e62e7e3ec | |
parent | b2dc92f5fbcc118cd723881c6dca3ebbdbecae4c (diff) | |
download | gnunet-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.c | 3 |
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) | |||
172 | void | 172 | void |
173 | GNUNET_GTK_quit_cb (GObject * object, gpointer user_data) | 173 | GNUNET_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 | ||