[gnome-packagekit/glib2-merge-candidate: 8/11] trivial: if we are adding deps, then select the checkbox in the update viewer



commit 4990566e64f729d93318e40a936590234c597a14
Author: Richard Hughes <richard hughsie com>
Date:   Tue Oct 6 13:39:58 2009 +0100

    trivial: if we are adding deps, then select the checkbox in the update viewer

 src/gpk-update-viewer.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index bfacd7f..3c0a5fb 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -706,6 +706,13 @@ gpk_update_viewer_progress_cb (PkProgress *progress, PkProgressType type, GMainL
 
 		gtk_tree_model_get_iter (model, &iter, path);
 
+		/* if we are adding deps, then select the checkbox */
+		if (role == PK_ROLE_ENUM_SIMULATE_UPDATE_PACKAGES) {
+			gtk_list_store_set (array_store_updates, &iter,
+					    GPK_UPDATES_COLUMN_SELECT, TRUE,
+					    -1);
+		}
+
 		/* scroll to the active cell */
 		scroll = gconf_client_get_bool (gconf_client, GPK_CONF_UPDATE_VIEWER_SCROLL_ACTIVE, NULL);
 		if (scroll) {



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