summaryrefslogtreecommitdiff
path: root/netspeed/src/netspeed.c
diff options
context:
space:
mode:
Diffstat (limited to 'netspeed/src/netspeed.c')
-rw-r--r--netspeed/src/netspeed.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index 2235542f..d1231a63 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -1563,11 +1563,14 @@ device_settings_changed (GSettings *settings,
const gchar *key,
NetspeedApplet *netspeed)
{
- char *davice;
+ char *device;
+ DevInfo *info;
- davice = g_settings_get_string (settings, key);
- set_applet_devinfo (netspeed, davice);
- g_free (davice);
+ device = g_settings_get_string (settings, key);
+ free_device_info (netspeed->devinfo);
+ get_device_info (device, &netspeed->devinfo);
+ netspeed->device_has_changed = TRUE;
+ g_free (device);
}
/* The "main" function of the applet