After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776369 - Device title missing on wired panel
Device title missing on wired panel
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Network
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-22 03:23 UTC by Michael Catanzaro
Modified: 2017-01-04 14:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: Fix missing page title on wired panel (941 bytes, patch)
2016-12-22 03:24 UTC, Michael Catanzaro
needs-work Details | Review

Description Michael Catanzaro 2016-12-22 03:23:27 UTC
In GNOME 3.20, when visiting the Network panel, the first thing I see is the bold title "Wired", above the text "Connected - 1000 Mb/s".

In GNOME 3.22, the word "Wired" is missing, and there is just a weird blank space about "Connected - 1000 Mb/s" where the title is supposed to go.

Not sure when it broke, probably the port to libnm.
Comment 1 Michael Catanzaro 2016-12-22 03:24:53 UTC
Created attachment 342363 [details] [review]
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.
Comment 2 Bastien Nocera 2017-01-04 13:17:15 UTC
Review of attachment 342363 [details] [review]:

Looks fine to commit to master, gnome-3-22 and gnome-3-20, after the fix.

::: panels/network/net-device-ethernet.c
@@ +627,3 @@
         device->connections = g_hash_table_new (NULL, NULL);
+
+        g_signal_connect (device, "notify::title", G_CALLBACK (device_ethernet_refresh_ui), NULL);

Could you please use an intermediary callback with the correct signature for this?
Comment 3 Michael Catanzaro 2017-01-04 14:08:03 UTC
(In reply to Bastien Nocera from comment #2)
> Review of attachment 342363 [details] [review] [review]:
> 
> Looks fine to commit to master, gnome-3-22 and gnome-3-20, after the fix.

It's not needed in gnome-3-20.

> ::: panels/network/net-device-ethernet.c
> @@ +627,3 @@
>          device->connections = g_hash_table_new (NULL, NULL);
> +
> +        g_signal_connect (device, "notify::title", G_CALLBACK
> (device_ethernet_refresh_ui), NULL);
> 
> Could you please use an intermediary callback with the correct signature for
> this?

Um, good point, wasn't thinking when I wrote it I guess.
Comment 4 Michael Catanzaro 2017-01-04 14:55:08 UTC
Attachment 342363 [details] pushed as 03ebd43 - network: Fix missing page title on wired panel