[gnome-software/1864-source-chooser-popover-when-there-s-only-one-row-it-should-not-be-clickable] gs-details-page: Disable activatable in origin popover when only one row is present
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1864-source-chooser-popover-when-there-s-only-one-row-it-should-not-be-clickable] gs-details-page: Disable activatable in origin popover when only one row is present
- Date: Thu, 18 Aug 2022 12:52:24 +0000 (UTC)
commit 996d4140fa8c8b393df6d6a1eea8d1b304dac0af
Author: Milan Crha <mcrha redhat com>
Date: Thu Aug 18 14:50:58 2022 +0200
gs-details-page: Disable activatable in origin popover when only one row is present
No need to click on it, when there's nothing to choose from.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1864
src/gs-details-page.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index a6711f97a..6cb720ed4 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -769,6 +769,8 @@ gs_details_page_get_alternates_cb (GObject *source_object,
/* Do not show the "selected" check when there's only one app in the list */
if (select_row && gs_app_list_length (list) > 1)
gs_origin_popover_row_set_selected (GS_ORIGIN_POPOVER_ROW (select_row), TRUE);
+ else if (select_row)
+ gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (select_row), FALSE);
gs_details_page_update_origin_button (self, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]