[gnome-control-center/gnome-3-2] Disable remove button if no printer is selected
- From: Marek KaÅÃk <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] Disable remove button if no printer is selected
- Date: Fri, 14 Oct 2011 09:31:28 +0000 (UTC)
commit be40d8860c15c1d1fc5cf9fde3a7613a60541a88
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Fri Oct 14 11:31:11 2011 +0200
Disable remove button if no printer is selected
https://bugzilla.gnome.org/show_bug.cgi?id=659724
panels/printers/cc-printers-panel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/printers/cc-printers-panel.c b/panels/printers/cc-printers-panel.c
index ad7c554..187a601 100644
--- a/panels/printers/cc-printers-panel.c
+++ b/panels/printers/cc-printers-panel.c
@@ -2296,7 +2296,7 @@ actualize_sensitivity (gpointer user_data)
gtk_widget_set_sensitive (widget, local_server && is_authorized);
widget = (GtkWidget*) gtk_builder_get_object (priv->builder, "printer-remove-button");
- gtk_widget_set_sensitive (widget, local_server && !is_discovered && is_authorized);
+ gtk_widget_set_sensitive (widget, local_server && !is_discovered && is_authorized && printer_selected);
widget = (GtkWidget*) gtk_builder_get_object (priv->builder, "printer-disable-switch");
gtk_widget_set_sensitive (widget, local_server && !is_discovered && is_authorized);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]