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



commit 23179452b0fb3f092e65f0bc740c4b0b61449e32
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 e26e369..5560b6f 100644
--- a/src/gs-sources-dialog.c
+++ b/src/gs-sources-dialog.c
@@ -208,6 +208,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);
@@ -222,6 +223,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]