diff --git a/panels/network/net-device-ethernet.c b/panels/network/net-device-ethernet.c index 95b04917f..60de88538 100644 --- a/panels/network/net-device-ethernet.c +++ b/panels/network/net-device-ethernet.c @@ -203,7 +203,7 @@ device_ethernet_refresh_ui (NetDeviceEthernet *self) } } status = panel_device_status_to_localized_string (self->device, speed_text); - hdy_action_row_set_title (self->details_row, status); + hdy_preferences_row_set_title (HDY_PREFERENCES_ROW (self->details_row), status); populate_ui (self); } diff --git a/tests/network/test-network-panel.c b/tests/network/test-network-panel.c index e11db1f68..54e52f0a3 100644 --- a/tests/network/test-network-panel.c +++ b/tests/network/test-network-panel.c @@ -133,12 +133,14 @@ find_label (GtkWidget *widget, return widget; } - if (HDY_IS_ACTION_ROW (widget)) { - const gchar *text = hdy_action_row_get_title (HDY_ACTION_ROW (widget)); + if (HDY_IS_PREFERENCES_ROW (widget)) { + const gchar *text = hdy_preferences_row_get_title (HDY_PREFERENCES_ROW (widget)); if (g_pattern_match_simple (label_pattern, text)) return widget; + } - text = hdy_action_row_get_subtitle (HDY_ACTION_ROW (widget)); + if (HDY_IS_ACTION_ROW (widget)) { + const gchar *text = hdy_action_row_get_subtitle (HDY_ACTION_ROW (widget)); if (g_pattern_match_simple (label_pattern, text)) return widget; }