[gnome-software] Unselect the updates treeview by default as we're using single-click to activate
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Unselect the updates treeview by default as we're using single-click to activate
- Date: Fri, 16 Aug 2013 08:36:13 +0000 (UTC)
commit 3f12eec3504b4641ea426a8fa54775c95928fd05
Author: Richard Hughes <richard hughsie com>
Date: Fri Aug 16 09:35:52 2013 +0100
Unselect the updates treeview by default as we're using single-click to activate
src/gs-main.c | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-main.c b/src/gs-main.c
index 7cade1e..cd07cc6 100644
--- a/src/gs-main.c
+++ b/src/gs-main.c
@@ -401,6 +401,21 @@ gs_main_set_updates_description_ui (GsMainPrivate *priv, GsApp *app)
}
/**
+ * gs_main_updates_unselect_treeview_cb:
+ **/
+static gboolean
+gs_main_updates_unselect_treeview_cb (gpointer user_data)
+{
+ GsMainPrivate *priv = (GsMainPrivate *) user_data;
+ GtkTreeView *treeview;
+
+ treeview = GTK_TREE_VIEW (gtk_builder_get_object (priv->builder, "treeview_update"));
+ gtk_tree_selection_unselect_all (gtk_tree_view_get_selection (treeview));
+
+ return FALSE;
+}
+
+/**
* gs_main_app_widget_more_cb:
**/
static void
@@ -442,11 +457,13 @@ gs_main_app_widget_more_cb (GsAppWidget *app_widget, GsMainPrivate *priv)
COLUMN_UPDATE_VERSION, gs_app_get_version (app_related),
-1);
}
+
+ /* unselect treeview by default */
+ g_idle_add (gs_main_updates_unselect_treeview_cb, priv);
}
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "dialog_update"));
gtk_window_present (GTK_WINDOW (widget));
-// xxxx
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]