[gnome-control-center] printers: Use correct type for print job id



commit 86c7505deec54676daf98cc10411c18f52ad8b20
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]