summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-06 22:55:38 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-06 22:55:38 +0000
commit63a21ca01ccc921fa323dbfced2eb84bceef791a (patch)
treebdbd12b4834da03d3044f4732374a19986f95e57 /src/trg-main-window.c
parentc8a12c44dd8a44d3f44190fc18d7df5346ef9dbb (diff)
update the free space indicator using a signal from TrgClient
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 6ef88bd..ff1bace 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -1557,6 +1557,11 @@ static gboolean trg_main_window_config_event(GtkWidget *widget,
return FALSE;
}
+static void trg_client_session_updated_cb(TrgClient *tc, JsonObject *session, gpointer data)
+{
+ trg_status_bar_session_update(TRG_STATUS_BAR(data), session);
+}
+
static GObject *trg_main_window_constructor(GType type,
guint n_construct_properties, GObjectConstructParam * construct_params) {
TrgMainWindow *self;
@@ -1700,6 +1705,9 @@ static GObject *trg_main_window_constructor(GType type,
priv->statusIcon = NULL;
priv->statusBar = trg_status_bar_new();
+ g_signal_connect(priv->client, "session-updated",
+ G_CALLBACK(trg_client_session_updated_cb), priv->statusBar);
+
/*g_signal_connect(priv->statusBar, "text-pushed",
G_CALLBACK(status_bar_text_pushed), self);*/
gtk_box_pack_start(GTK_BOX(outerVbox), GTK_WIDGET(priv->statusBar), FALSE,