Commit 03ebd431 authored by Michael Catanzaro's avatar Michael Catanzaro

network: Fix missing page title on wired panel

The NetDeviceEthernet's title is not set until after the UI is created,
so we have to listen for changes to the title.

https://bugzilla.gnome.org/show_bug.cgi?id=776369
parent 76062e11
......@@ -513,6 +513,14 @@ device_off_toggled (GtkSwitch *sw,
}
}
static void
device_title_changed (NetDeviceEthernet *device,
GParamSpec *pspec,
gpointer user_data)
{
device_ethernet_refresh_ui (device);
}
static void
connection_activated (GtkListBox *list, GtkListBoxRow *row, NetDeviceEthernet *device)
{
......@@ -625,4 +633,6 @@ net_device_ethernet_init (NetDeviceEthernet *device)
}
device->connections = g_hash_table_new (NULL, NULL);
g_signal_connect (device, "notify::title", G_CALLBACK (device_title_changed), NULL);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment