summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-05 21:39:54 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-05 21:39:54 +0000
commit7b8dc2b65b24b48d6be090e0798b31c46090780e (patch)
treede975443bc724d61f8a2784904083f61801ee672 /src/trg-main-window.c
parente941b2e01998f86cd60fac3c83091d473b4bfecd (diff)
issue 40 - a free space indicator. also split stuff out on the statusbar to the right side. I never liked that statusbar :o now use GtkLabels inside a HBox instead of 1 GtkStatusBar.
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 7f36064..84efee0 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -165,8 +165,6 @@ static gboolean torrent_tv_button_pressed_cb(GtkWidget * treeview,
GdkEventButton * event, gpointer userdata);
static gboolean torrent_tv_popup_menu_cb(GtkWidget * treeview,
gpointer userdata);
-static void status_bar_text_pushed(GtkStatusbar * statusbar, guint context_id,
- gchar * text, gpointer user_data);
static gboolean window_state_event(GtkWidget * widget,
GdkEventWindowState * event, gpointer trayIcon);
@@ -429,7 +427,7 @@ static void disconnect_cb(GtkWidget * w G_GNUC_UNUSED, gpointer data) {
TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(data);
trg_main_window_conn_changed(TRG_MAIN_WINDOW(data), FALSE);
- trg_status_bar_push_connection_msg(priv->statusBar, "Disconnected.");
+ trg_status_bar_reset(priv->statusBar);
}
static void connect_cb(GtkWidget * w G_GNUC_UNUSED, gpointer data) {
@@ -1473,14 +1471,6 @@ static gboolean torrent_tv_popup_menu_cb(GtkWidget * treeview,
return TRUE;
}
-static void status_bar_text_pushed(GtkStatusbar * statusbar, guint context_id,
- gchar * text, gpointer user_data) {
- TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(user_data);
-
- if (priv->statusIcon)
- gtk_status_icon_set_tooltip(priv->statusIcon, text);
-}
-
static gboolean window_state_event(GtkWidget * widget,
GdkEventWindowState * event, gpointer trayIcon) {
TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(widget);
@@ -1706,8 +1696,8 @@ static GObject *trg_main_window_constructor(GType type,
priv->statusIcon = NULL;
priv->statusBar = trg_status_bar_new();
- g_signal_connect(priv->statusBar, "text-pushed",
- G_CALLBACK(status_bar_text_pushed), self);
+ /*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,
FALSE, 2);