No subject


Fri Jun 17 11:15:25 PDT 2011


a finished signal. And then... it just continues without
re-insensitiving everything...


Note that I haven't tested this...

diff --git a/src/gpk-application.c b/src/gpk-application.c
index c4c5647..5fa73b3 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -638,6 +638,10 @@ gpk_application_progress_cb (PkProgress
*progress, PkProgressType type, gpointer
 			widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_apply"));
 			gtk_widget_set_sensitive (widget, TRUE);

+			/* make clear button sensitive */
+			widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_clear"));
+			gtk_widget_set_sensitive (widget, TRUE);
+
 			/* we've not yet shown, so don't bother */
 			if (status_id > 0) {
 				g_source_remove (status_id);
@@ -2061,6 +2065,10 @@ gpk_application_button_apply_cb (GtkWidget
*widget, gpointer user_data)
 		widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_apply"));
 		gtk_widget_set_sensitive (widget, FALSE);

+		/* make clear button insensitive */
+		widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_clear"));
+		gtk_widget_set_sensitive (widget, FALSE);
+
 	} else if (action == GPK_ACTION_REMOVE) {
 		autoremove = g_settings_get_boolean (settings,
GPK_SETTINGS_ENABLE_AUTOREMOVE);

@@ -2076,6 +2084,10 @@ gpk_application_button_apply_cb (GtkWidget
*widget, gpointer user_data)
 		/* make apply button insensitive */
 		widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_apply"));
 		gtk_widget_set_sensitive (widget, FALSE);
+
+		/* make clear button insensitive */
+		widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_clear"));
+		gtk_widget_set_sensitive (widget, FALSE);
 	}
 	g_strfreev (package_ids);
 	return;

-- 
later, Robert Xu + rxu AT lincomlinux DOT org


More information about the PackageKit mailing list