summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-23 09:03:29 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-23 09:03:29 +0000
commitcdaff8ede183ae5d76b2d02d2cb72ce136e3592e (patch)
treedfa322395c1e7227d1d216dad40f806c88871be3 /src/trg-main-window.c
parent7295ada33a7799e3b3d85e36a0c8a4e6b5bfdb19 (diff)
part of issue 175 - regression not doing refresh when adding/deleting
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 4fb5561..a810495 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -1147,7 +1147,7 @@ static void update_whatever_statusicon(TrgMainWindow * win,
downloadingLabel);
g_free(downloadingLabel);
- trg_strlsize(buf, stats->upRateTotal);
+ trg_strlspeed(buf, stats->upRateTotal);
seedingLabel = g_strdup_printf(_("%d Seeding @ %s"),
stats->seeding, buf);
gtk_menu_item_set_label(GTK_MENU_ITEM(priv->iconSeedingItem),
@@ -2347,6 +2347,14 @@ void trg_main_window_remove_graph(TrgMainWindow * win)
}
#endif
+/*static gboolean status_icon_size_changed(GtkStatusIcon *status_icon,
+ gint size,
+ gpointer user_data)
+{
+ gtk_status_icon_set_from_icon_name(status_icon, PACKAGE_NAME);
+ return TRUE;
+}*/
+
void trg_main_window_add_status_icon(TrgMainWindow * win)
{
TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(win);
@@ -2370,6 +2378,7 @@ void trg_main_window_add_status_icon(TrgMainWindow * win)
G_CALLBACK(status_icon_button_press_event), win);
g_signal_connect(priv->statusIcon, "popup-menu",
G_CALLBACK(trg_status_icon_popup_menu_cb), win);
+ // g_signal_connect(priv->statusIcon, "size-changed", G_CALLBACK(status_icon_size_changed), win);
gtk_status_icon_set_visible(priv->statusIcon, TRUE);
#endif