diff options
author | Adrien Plazas <kekun.plazas@laposte.net> | 2020-07-28 13:17:31 +0200 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2020-07-30 12:07:05 +0000 |
commit | f2f188974d1082321f8f35c06bcb8bad8f55c7eb (patch) | |
tree | 7c64f474e0c8c2064f4c8c7e578051a50940f8c0 /tests | |
parent | 11f957aaccbc9d786f3f2c4cda287e14c3d0dfcd (diff) | |
download | gnome-control-center-f2f188974d1082321f8f35c06bcb8bad8f55c7eb.tar.gz |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/network/test-network-panel.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; } |