[gnome-multi-writer] trivial: Export gmw_device_set_hub_label()



commit 5ba2c96e0138119eb33d46d0b916b367a1d4b636
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jan 21 17:22:54 2015 +0000

    trivial: Export gmw_device_set_hub_label()

 src/gmw-device.c |    5 ++++-
 src/gmw-device.h |    2 ++
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gmw-device.c b/src/gmw-device.c
index 2cff80a..b56044a 100644
--- a/src/gmw-device.c
+++ b/src/gmw-device.c
@@ -426,7 +426,7 @@ gmw_device_set_block_path (GmwDevice *device, const gchar *block_path)
 /**
  * gmw_device_set_hub_label:
  **/
-static void
+void
 gmw_device_set_hub_label (GmwDevice *device, const gchar *hub_label)
 {
        GmwDevicePrivate *priv = gmw_device_get_instance_private (device);
@@ -435,6 +435,9 @@ gmw_device_set_hub_label (GmwDevice *device, const gchar *hub_label)
        g_free (priv->hub_label);
        priv->hub_label = g_strdup (hub_label);
        g_mutex_unlock (&priv->mutex);
+
+       /* invalidate */
+       gmw_device_set_order_display (device, NULL);
 }
 
 /**
diff --git a/src/gmw-device.h b/src/gmw-device.h
index 97ead04..533156d 100644
--- a/src/gmw-device.h
+++ b/src/gmw-device.h
@@ -87,6 +87,8 @@ void           gmw_device_set_block_path      (GmwDevice      *device,
                                                 const gchar    *block_path);
 void            gmw_device_set_hub_id          (GmwDevice      *device,
                                                 const gchar    *hub_id);
+void            gmw_device_set_hub_label       (GmwDevice      *device,
+                                                const gchar    *hub_label);
 void            gmw_device_set_object_path     (GmwDevice      *device,
                                                 const gchar    *object_path);
 void            gmw_device_set_order_display   (GmwDevice      *device,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]