[gnome-control-center] Disable remove button if no printer is selected
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Disable remove button if no printer is selected
- Date: Wed, 21 Sep 2011 14:50:21 +0000 (UTC)
commit 82a9cdb2edf4e2afa0d3d1ae81db539400221c24
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Wed Sep 21 16:49:44 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 d220f38..19074a0 100644
--- a/panels/printers/cc-printers-panel.c
+++ b/panels/printers/cc-printers-panel.c
@@ -2285,7 +2285,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]