[gnome-software/wip/mcrha/libhandy-leftover] gs-repos-dialog: Always set the 'Fedora Third Party Repositories' group description
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/mcrha/libhandy-leftover] gs-repos-dialog: Always set the 'Fedora Third Party Repositories' group description
- Date: Tue, 4 Jan 2022 10:32:03 +0000 (UTC)
commit ea859268df881367122674b5a5847a8f6879ba69
Author: Milan Crha <mcrha redhat com>
Date: Tue Jan 4 11:29:40 2022 +0100
gs-repos-dialog: Always set the 'Fedora Third Party Repositories' group description
The conditional compile was a leftover from the libhandy usage, the libadwaita
has the needed function always available. Similarly the description is
always a markup.
src/gs-repos-dialog.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/gs-repos-dialog.c b/src/gs-repos-dialog.c
index 56869c68c..17d999ffd 100644
--- a/src/gs-repos-dialog.c
+++ b/src/gs-repos-dialog.c
@@ -521,13 +521,8 @@ get_sources_cb (GsPluginLoader *plugin_loader,
widget = adw_preferences_group_new ();
adw_preferences_group_set_title (ADW_PREFERENCES_GROUP (widget),
_("Fedora Third Party Repositories"));
-/* AdwPreferencesGroup:use-markup doesn't exist before 1.3.90, configurations
- * where GNOME 41 will be used and Libhandy 1.3.90 won't be available are
- * unlikely, so let's just ignore the description in such cases. */
-#if ADW_CHECK_VERSION(1, 3, 90)
+
adw_preferences_group_set_description (ADW_PREFERENCES_GROUP (widget), hint);
- adw_preferences_group_set_use_markup (ADW_PREFERENCES_GROUP (widget), TRUE);
-#endif
gtk_widget_show (widget);
adw_preferences_group_add (ADW_PREFERENCES_GROUP (widget), row);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]