From f2f188974d1082321f8f35c06bcb8bad8f55c7eb Mon Sep 17 00:00:00 2001 From: Adrien Plazas Date: Tue, 28 Jul 2020 13:17:31 +0200 Subject: 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 --- tests/network/test-network-panel.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') 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; } -- cgit v1.2.1