[gnome-control-center/printers-don't-notify-print-jobs] printers: Use correct type for print job id
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/printers-don't-notify-print-jobs] printers: Use correct type for print job id
- Date: Fri, 24 May 2019 17:15:14 +0000 (UTC)
commit 0cc75a330f326e2ea18cfacb8ca785ca21cff14b
Author: Marek Kasik <mkasik redhat com>
Date: Thu May 23 17:20:47 2019 +0200
printers: Use correct type for print job id
There was pointer to integer used instead of integer for job_id in 2 functions.
This actually works somehow but I'm changing it to proper integer.
panels/printers/pp-job.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/printers/pp-job.c b/panels/printers/pp-job.c
index 7664222a3..33c83e76a 100644
--- a/panels/printers/pp-job.c
+++ b/panels/printers/pp-job.c
@@ -89,9 +89,9 @@ void
pp_job_cancel_purge_async (PpJob *self,
gboolean job_purge)
{
- GDBusConnection *bus;
+ GDBusConnection *bus;
g_autoptr(GError) error = NULL;
- gint *job_id;
+ gint job_id;
g_object_get (self, "id", &job_id, NULL);
@@ -142,7 +142,7 @@ pp_job_set_hold_until_async (PpJob *self,
{
GDBusConnection *bus;
g_autoptr(GError) error = NULL;
- gint *job_id;
+ gint job_id;
g_object_get (self, "id", &job_id, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]