gnome-netstatus r744 - in trunk: . src
- From: diegoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-netstatus r744 - in trunk: . src
- Date: Wed, 26 Nov 2008 22:42:57 +0000 (UTC)
Author: diegoe
Date: Wed Nov 26 22:42:57 2008
New Revision: 744
URL: http://svn.gnome.org/viewvc/gnome-netstatus?rev=744&view=rev
Log:
Make applet tooltip show device status.
Fixes bug #166912. Patch by Pedro Villavicencio, back in the days.
Modified:
trunk/ChangeLog
trunk/src/netstatus-icon.c
Modified: trunk/src/netstatus-icon.c
==============================================================================
--- trunk/src/netstatus-icon.c (original)
+++ trunk/src/netstatus-icon.c Wed Nov 26 22:42:57 2008
@@ -378,7 +378,10 @@
iface_name = netstatus_iface_get_name (icon->priv->iface);
if (iface_name)
{
- freeme = g_strdup_printf (_("Network Connection: %s"), iface_name);
+ const char *state_string;
+
+ state_string = netstatus_get_state_string (icon->priv->state);
+ freeme = g_strdup_printf (_("Network Connection: %s\n%s"), iface_name, state_string);
tip = freeme;
}
else
@@ -407,6 +410,7 @@
icon->priv->state = state;
netstatus_icon_update_image (icon);
+ netstatus_icon_name_changed (icon->priv->iface, NULL, icon);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]