[gnome-software/gnome-3-16] Make rows in history dialog non-activatable



commit dceac8886b01e9e5f823ec9981c66393f78b93fd
Author: Kalev Lember <kalevlember gmail com>
Date:   Tue Jun 16 22:07:59 2015 +0200

    Make rows in history dialog non-activatable
    
    Since we don't do anything when you click on a row there, they should
    not give the impression that they are activatable.

 src/gs-history-dialog.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-history-dialog.c b/src/gs-history-dialog.c
index b8fe46e..fbb9f58 100644
--- a/src/gs-history-dialog.c
+++ b/src/gs-history-dialog.c
@@ -59,6 +59,7 @@ gs_history_dialog_set_app (GsHistoryDialog *dialog, GsApp *app)
        const gchar *tmp;
        GPtrArray *history;
        GtkBox *box;
+       GtkWidget *row;
        GtkWidget *widget;
        guint64 timestamp;
        guint i;
@@ -143,6 +144,9 @@ gs_history_dialog_set_app (GsHistoryDialog *dialog, GsApp *app)
 
                gtk_widget_show_all (GTK_WIDGET (box));
                gtk_list_box_insert (GTK_LIST_BOX (priv->list_box), GTK_WIDGET (box), -1);
+
+               row = gtk_widget_get_parent (GTK_WIDGET (box));
+               gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
        }
 }
 


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