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
This commit is contained in:
parent
11f957aacc
commit
f2f188974d
2 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue