[gnome-packagekit] Don't show the clear button when installing or removing packages
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Don't show the clear button when installing or removing packages
- Date: Wed, 15 Aug 2012 09:54:52 +0000 (UTC)
commit eeea9afeb0ec7eefc03c1e99b3f46b1748b65ff3
Author: Richard Hughes <richard hughsie com>
Date: Wed Aug 15 10:46:09 2012 +0100
Don't show the clear button when installing or removing packages
src/gpk-application.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 8529639..24f6b87 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -1990,7 +1990,9 @@ gpk_application_button_apply_cb (GtkWidget *widget, GpkApplicationPrivate *priv)
/* make apply button insensitive */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_apply"));
- gtk_widget_set_sensitive (widget, FALSE);
+ gtk_widget_set_visible (widget, FALSE);
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_clear"));
+ gtk_widget_set_visible (widget, FALSE);
} else if (priv->action == GPK_ACTION_REMOVE) {
autoremove = g_settings_get_boolean (priv->settings, GPK_SETTINGS_ENABLE_AUTOREMOVE);
@@ -2006,7 +2008,9 @@ gpk_application_button_apply_cb (GtkWidget *widget, GpkApplicationPrivate *priv)
/* make apply button insensitive */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_apply"));
- gtk_widget_set_sensitive (widget, FALSE);
+ gtk_widget_set_visible (widget, FALSE);
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_clear"));
+ gtk_widget_set_visible (widget, FALSE);
}
g_strfreev (package_ids);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]