[gnome-software] Make apps in sources dialog non-activatable



commit 4b6d29a843d2d0394e4ae349aa7ac07403bf026a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 23 13:58:52 2015 -0400

    Make apps in sources dialog non-activatable
    
    Since we don't do anything when you click on an app there,
    the rows should not give the impression that they are
    activatable.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726820

 src/gs-sources-dialog.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-sources-dialog.c b/src/gs-sources-dialog.c
index 2762fa0..b49d7b1 100644
--- a/src/gs-sources-dialog.c
+++ b/src/gs-sources-dialog.c
@@ -236,6 +236,7 @@ add_app (GtkListBox *listbox, GsApp *app)
 {
        GtkWidget *box;
        GtkWidget *widget;
+       GtkWidget *row;
 
        box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
        gtk_widget_set_margin_top (box, 12);
@@ -250,6 +251,9 @@ add_app (GtkListBox *listbox, GsApp *app)
        gtk_list_box_prepend (listbox, box);
        gtk_widget_show (widget);
        gtk_widget_show (box);
+
+       row = gtk_widget_get_parent (box);
+       gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]