[gnome-control-center/gnome-3-24] printers: Fix visibility guard for the printer "Model" label
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-24] printers: Fix visibility guard for the printer "Model" label
- Date: Thu, 20 Jul 2017 11:40:07 +0000 (UTC)
commit 2bebdf11b593481d7d54362254f8f32a2e362e9d
Author: Felipe Borges <felipeborges gnome org>
Date: Thu Jul 20 13:32:14 2017 +0200
printers: Fix visibility guard for the printer "Model" label
We just present the printer "Model" when printer_make_and_model
is different than NULL OR not an empty string.
We were using the wrong logic operator in the conditional that
toggles the visibility of this info.
panels/printers/pp-printer-entry.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/printers/pp-printer-entry.c b/panels/printers/pp-printer-entry.c
index 4823924..7efa3bf 100644
--- a/panels/printers/pp-printer-entry.c
+++ b/panels/printers/pp-printer-entry.c
@@ -761,7 +761,7 @@ pp_printer_entry_new (cups_dest_t printer,
self->printer_make_and_model = sanitize_printer_model (printer_make_and_model);
- if (self->printer_make_and_model == NULL && self->printer_make_and_model[0] != '\0')
+ if (self->printer_make_and_model == NULL || self->printer_make_and_model[0] != '\0')
{
gtk_widget_hide (GTK_WIDGET (self->printer_model_label));
gtk_widget_hide (GTK_WIDGET (self->printer_model));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]