[gnome-control-center] Adapt to HdyActionRow changes
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Adapt to HdyActionRow changes
- Date: Fri, 31 Jul 2020 00:11:12 +0000 (UTC)
commit f2f188974d1082321f8f35c06bcb8bad8f55c7eb
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Jul 28 13:17:31 2020 +0200
Adapt to HdyActionRow changes
Its title property got dropped as it was coliding with the one it
inherits from HdyPreferencesRow, so use that one instead.
See https://gitlab.gnome.org/GNOME/libhandy/-/issues/258
panels/network/net-device-ethernet.c | 2 +-
tests/network/test-network-panel.c | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
---
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]