[Xfce4-commits] [apps/xfce4-screenshooter] 01/04: Fix compilation warnings

noreply at xfce.org noreply at xfce.org
Sat Jan 5 22:27:19 CET 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screenshooter.

commit 293fb9e2e703e294ae869addac6bd1f6d3b426d5
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Jan 5 17:44:05 2019 -0300

    Fix compilation warnings
---
 lib/screenshooter-actions.c    |  2 +-
 lib/screenshooter-capture.c    |  3 ---
 lib/screenshooter-job.c        | 28 ++++++++--------------------
 lib/screenshooter-simple-job.c |  6 ++++--
 4 files changed, 13 insertions(+), 26 deletions(-)

diff --git a/lib/screenshooter-actions.c b/lib/screenshooter-actions.c
index ebc2c9e..3504954 100644
--- a/lib/screenshooter-actions.c
+++ b/lib/screenshooter-actions.c
@@ -36,7 +36,7 @@ cb_help_response (GtkWidget *dialog, gint response, gpointer unused)
 
 
 
-gboolean
+static gboolean
 action_idle (ScreenshotData *sd)
 {
   if (!sd->action_specified)
diff --git a/lib/screenshooter-capture.c b/lib/screenshooter-capture.c
index 314e7be..e8fccb3 100644
--- a/lib/screenshooter-capture.c
+++ b/lib/screenshooter-capture.c
@@ -923,7 +923,6 @@ static GdkPixbuf
   GtkWidget *window;
   RubberBandData rbdata;
   GdkPixbuf *screenshot = NULL;
-  GdkWindow *root;
   GdkDevice *pointer, *keyboard;
   GdkGrabStatus res;
   GdkSeat   *seat;
@@ -1032,8 +1031,6 @@ static GdkPixbuf
     goto cleanup;
 
   /* Grab the screenshot on the main window */
-  root = gdk_get_default_root_window ();
-
   screenshot = capture_rectangle_screenshot (rbdata.rectangle_root.x,
                                              rbdata.rectangle_root.y,
                                              rbdata.rectangle.width,
diff --git a/lib/screenshooter-job.c b/lib/screenshooter-job.c
index a855d4a..c2a9628 100644
--- a/lib/screenshooter-job.c
+++ b/lib/screenshooter-job.c
@@ -35,12 +35,11 @@ enum
 
 
 
-static void  screenshooter_job_class_init (ScreenshooterJobClass *klass);
-static void  screenshooter_job_init       (ScreenshooterJob      *job);
+static void  screenshooter_job_class_init (ScreenshooterJobClass *klass,
+                                           gpointer               data);
+static void  screenshooter_job_init       (ScreenshooterJob      *job,
+                                           gpointer               klass);
 static void  screenshooter_job_finalize   (GObject               *object);
-/*static void  screenshooter_job_real_ask   (ScreenshooterJob      *job,
-                                           GtkListStore          *liststore,
-                                           const gchar           *message);*/
 
 
 
@@ -71,7 +70,8 @@ screenshooter_job_get_type (void)
 
 
 static void
-screenshooter_job_class_init (ScreenshooterJobClass *klass)
+screenshooter_job_class_init (ScreenshooterJobClass *klass,
+                              gpointer               data)
 {
   GObjectClass *gobject_class;
 
@@ -129,7 +129,8 @@ screenshooter_job_class_init (ScreenshooterJobClass *klass)
 
 
 static void
-screenshooter_job_init (ScreenshooterJob *job)
+screenshooter_job_init (ScreenshooterJob *job,
+                        gpointer          klass)
 {
 
 }
@@ -144,19 +145,6 @@ screenshooter_job_finalize (GObject *object)
 
 
 
-/*static void
-screenshooter_job_real_ask (ScreenshooterJob *job,
-                            GtkListStore     *liststore,
-                            const gchar      *message)
-{
-  g_return_if_fail (SCREENSHOOTER_IS_JOB (job));
-
-  TRACE ("Emit ask signal.");
-  g_signal_emit (job, job_signals[ASK], 0, liststore, message);
-}*/
-
-
-
 /* Public */
 
 
diff --git a/lib/screenshooter-simple-job.c b/lib/screenshooter-simple-job.c
index cb22f78..ff07f49 100644
--- a/lib/screenshooter-simple-job.c
+++ b/lib/screenshooter-simple-job.c
@@ -19,7 +19,8 @@
 
 #include "screenshooter-simple-job.h"
 
-static void     screenshooter_simple_job_class_init (ScreenshooterSimpleJobClass  *klass);
+static void     screenshooter_simple_job_class_init (ScreenshooterSimpleJobClass  *klass,
+                                                     gpointer                      data);
 static void     screenshooter_simple_job_finalize   (GObject                      *object);
 static gboolean screenshooter_simple_job_execute    (ExoJob                       *job,
                                                      GError                      **error);
@@ -66,7 +67,8 @@ screenshooter_simple_job_get_type (void)
 
 
 static void
-screenshooter_simple_job_class_init (ScreenshooterSimpleJobClass *klass)
+screenshooter_simple_job_class_init (ScreenshooterSimpleJobClass *klass,
+                                     gpointer                     data)
 {
   GObjectClass *gobject_class;
   ExoJobClass  *exojob_class;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list