[gnome-software] Make rows in history dialog non-activatable
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Make rows in history dialog non-activatable
- Date: Tue, 16 Jun 2015 20:14:31 +0000 (UTC)
commit f796ffda104fcf0769be09e62ac08b168b37ab87
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 f2a0e20..4bf94f8 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]