network: disambiguate devices of the same type
If there are multiple devices that would end up with the same name in the device list, disambiguate their names via new libnm-gtk API. https://bugzilla.gnome.org/show_bug.cgi?id=677143
This commit is contained in:
parent
71c0325f28
commit
63756458b2
7 changed files with 88 additions and 64 deletions
|
@ -88,6 +88,7 @@ net_object_set_id (NetObject *object, const gchar *id)
|
|||
{
|
||||
g_return_if_fail (NET_IS_OBJECT (object));
|
||||
object->priv->id = g_strdup (id);
|
||||
g_object_notify (G_OBJECT (object), "id");
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
@ -109,6 +110,7 @@ net_object_set_title (NetObject *object, const gchar *title)
|
|||
{
|
||||
g_return_if_fail (NET_IS_OBJECT (object));
|
||||
object->priv->title = g_strdup (title);
|
||||
g_object_notify (G_OBJECT (object), "title");
|
||||
}
|
||||
|
||||
NMClient *
|
||||
|
@ -301,7 +303,7 @@ net_object_class_init (NetObjectClass *klass)
|
|||
|
||||
pspec = g_param_spec_string ("title", NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE);
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
|
||||
g_object_class_install_property (object_class, PROP_TITLE, pspec);
|
||||
|
||||
pspec = g_param_spec_boolean ("removable", NULL, NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue