[gnome-control-center] printers: Don't set reason when setting AcceptJobs
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] printers: Don't set reason when setting AcceptJobs
- Date: Tue, 5 Apr 2011 15:50:46 +0000 (UTC)
commit 84a2b3e3538c5b148174332daf518d6e7d562eb6
Author: Marek Kasik <mkasik redhat com>
Date: Tue Apr 5 17:50:18 2011 +0200
printers: Don't set reason when setting AcceptJobs
Set reason to NULL when setting AcceptJobs to TRUE (rhbz#691154).
panels/printers/pp-new-printer-dialog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/printers/pp-new-printer-dialog.c b/panels/printers/pp-new-printer-dialog.c
index cede966..0c5a0a5 100644
--- a/panels/printers/pp-new-printer-dialog.c
+++ b/panels/printers/pp-new-printer-dialog.c
@@ -827,7 +827,7 @@ new_printer_add_button_cb (GtkButton *button,
dbus_g_proxy_call (proxy, "PrinterSetAcceptJobs", &error,
G_TYPE_STRING, pp->devices[device_id].display_name,
G_TYPE_BOOLEAN, TRUE,
- G_TYPE_STRING, "none",
+ G_TYPE_STRING, NULL,
G_TYPE_INVALID,
G_TYPE_STRING, &ret_error,
G_TYPE_INVALID);
@@ -995,7 +995,7 @@ new_printer_add_button_cb (GtkButton *button,
dbus_g_proxy_call (proxy, "PrinterSetAcceptJobs", &error,
G_TYPE_STRING, pp->devices[device_id].display_name,
G_TYPE_BOOLEAN, TRUE,
- G_TYPE_STRING, "none",
+ G_TYPE_STRING, NULL,
G_TYPE_INVALID,
G_TYPE_STRING, &ret_error,
G_TYPE_INVALID);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]