diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-11-30 18:54:29 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-11-30 18:54:29 +0000 |
commit | 7bc8fe632f29a875659f223ad1e9aa035c56f46c (patch) | |
tree | 8a13af1000337feade93762295b213283b03d089 /src/trg-status-bar.c | |
parent | 6df6b7c2a2383d01a6fc20e597f48b0168ccfeb5 (diff) |
add some comments at the top of some files, also add a timeout of 20 seconds for curl requests
Diffstat (limited to 'src/trg-status-bar.c')
-rw-r--r-- | src/trg-status-bar.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/trg-status-bar.c b/src/trg-status-bar.c index cb28778..8e5725e 100644 --- a/src/trg-status-bar.c +++ b/src/trg-status-bar.c @@ -26,6 +26,17 @@ #include "session-get.h" #include "util.h" +/* A subclass of GtkHBox which contains a status label on the left. + * Free space indicator on left-right. + * Speed (including limits if in use) label on right-right. + * + * Status and speed labels should be updated on every torrent-get using + * trg_status_bar_update. Free space is updated with trg_status_bar_session_update. + * + * There's a signal in TrgClient for session updates, connected into the + * main window, which calls this. Session updates happen every 10 torrent-get updates. + */ + G_DEFINE_TYPE(TrgStatusBar, trg_status_bar, GTK_TYPE_HBOX) #define TRG_STATUS_BAR_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRG_TYPE_STATUS_BAR, TrgStatusBarPrivate)) |