diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-04-22 23:42:10 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-04-22 23:42:10 +0000 |
commit | fc4ffcaa3bc34da935ac6f46cab71be932de306c (patch) | |
tree | 95762165d7b2ed42ada66fa13f65a59ee24a50ef /src/trg-main-window.c | |
parent | f9a48fb5e46c387e87c190fc62046e732e776b94 (diff) |
support for remembering column positions and widths.. seems to work, may need work.
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r-- | src/trg-main-window.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c index accc00d..3bacab5 100644 --- a/src/trg-main-window.c +++ b/src/trg-main-window.c @@ -33,6 +33,7 @@ #include <gdk/gdkkeysyms.h> #include <curl/curl.h> #include <libnotify/notify.h> +#include <gconf/gconf-client.h> #include "dispatch.h" #include "trg-client.h" @@ -354,6 +355,10 @@ static gboolean delete_event(GtkWidget * w, height, NULL); gconf_client_set_int(priv->client->gconf, TRG_GCONF_KEY_WINDOW_WIDTH, width, NULL); + trg_tree_view_persist(TRG_TREE_VIEW(priv->peersTreeView)); + trg_tree_view_persist(TRG_TREE_VIEW(priv->filesTreeView)); + trg_tree_view_persist(TRG_TREE_VIEW(priv->torrentTreeView)); + trg_tree_view_persist(TRG_TREE_VIEW(priv->trackersTreeView)); return FALSE; } @@ -998,10 +1003,10 @@ static gboolean trg_update_torrents_timerfunc(gpointer data) if (priv->client->session) dispatch_async(priv->client, - torrent_get(priv->client-> - activeOnlyUpdate ? -2 : -1), - priv-> - client->activeOnlyUpdate ? on_torrent_get_active : + torrent_get(priv-> + client->activeOnlyUpdate ? -2 : -1), + priv->client-> + activeOnlyUpdate ? on_torrent_get_active : on_torrent_get_update, data); return FALSE; |