summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-05-13 20:46:33 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-05-13 20:46:33 +0000
commitbde5ae0e400dc61f2eb64e7ffb9707b9c69b9113 (patch)
treefe4f89db1d0376496b8048e4bc17a2e74545e4b5 /src/trg-main-window.c
parent665e231ceb850f86ceedf80cdb6d13cca52671bf (diff)
issue 41 - remember sort column and type. also move all these stores from delete-event to destroy function so it works when the quit buttons are used, as well as from window manager.
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 2975614..8236914 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -346,6 +346,11 @@ static gboolean delete_event(GtkWidget * w,
GdkEvent * event G_GNUC_UNUSED,
gpointer data G_GNUC_UNUSED)
{
+ return FALSE;
+}
+
+static void destroy_window(GtkWidget * w, gpointer data G_GNUC_UNUSED)
+{
TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(w);
int width, height;
gtk_window_get_size(GTK_WINDOW(w), &width, &height);
@@ -358,12 +363,6 @@ static gboolean delete_event(GtkWidget * w,
trg_tree_view_persist(TRG_TREE_VIEW(priv->torrentTreeView));
trg_tree_view_persist(TRG_TREE_VIEW(priv->trackersTreeView));
- return FALSE;
-}
-
-static void
-destroy_window(GtkWidget * w G_GNUC_UNUSED, gpointer data G_GNUC_UNUSED)
-{
gtk_main_quit();
}