[Xfce4-commits] [apps/xfce4-screenshooter] 16/38: Fix indentation

noreply at xfce.org noreply at xfce.org
Fri Apr 28 03:07:12 CEST 2017


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

andre pushed a commit to branch master
in repository apps/xfce4-screenshooter.

commit e96ab226ca659c274f519cd6b4e996484bff3b9a
Author: Andre Miranda <andre42m at gmail.com>
Date:   Thu Mar 30 00:19:46 2017 -0300

    Fix indentation
---
 lib/screenshooter-capture.c | 60 ++++++++++++++++++++++-----------------------
 1 file changed, 30 insertions(+), 30 deletions(-)

diff --git a/lib/screenshooter-capture.c b/lib/screenshooter-capture.c
index 63cc49b..c7b5dbf 100644
--- a/lib/screenshooter-capture.c
+++ b/lib/screenshooter-capture.c
@@ -785,7 +785,7 @@ region_filter_func (GdkXEvent *xevent, GdkEvent *event, RbData *rbdata)
   Display *display;
   Window root_window;
 
-  display =  gdk_x11_get_default_xdisplay();
+  display = gdk_x11_get_default_xdisplay ();
   root_window = gdk_x11_get_default_root_xwindow ();
 
   if (x_event->type != GenericEvent)
@@ -817,13 +817,13 @@ region_filter_func (GdkXEvent *xevent, GdkEvent *event, RbData *rbdata)
                 /* Remove the rectangle drawn previously */
                 TRACE ("Remove the rectangle drawn previously");
 
-                XDrawRectangle(display,
-                               root_window,
-                               *rbdata->context,
-                               (int) rbdata->rectangle.x,
-                               (int) rbdata->rectangle.y,
-                               (unsigned int) rbdata->rectangle.width-1,
-                               (unsigned int) rbdata->rectangle.height-1);
+                XDrawRectangle (display,
+                                root_window,
+                                *rbdata->context,
+                                rbdata->rectangle.x,
+                                rbdata->rectangle.y,
+                                (unsigned int) rbdata->rectangle.width-1,
+                                (unsigned int) rbdata->rectangle.height-1);
 
                 gtk_main_quit ();
               }
@@ -849,13 +849,13 @@ region_filter_func (GdkXEvent *xevent, GdkEvent *event, RbData *rbdata)
                 /* Remove the rectangle drawn previously */
                 TRACE ("Remove the rectangle drawn previously");
 
-                XDrawRectangle(display,
-                               root_window,
-                               *rbdata->context,
-                               (int) rbdata->rectangle.x,
-                               (int) rbdata->rectangle.y,
-                               (unsigned int) rbdata->rectangle.width-1,
-                               (unsigned int) rbdata->rectangle.height-1);
+                XDrawRectangle (display,
+                                root_window,
+                                *rbdata->context,
+                                rbdata->rectangle.x,
+                                rbdata->rectangle.y,
+                                (unsigned int) rbdata->rectangle.width-1,
+                                (unsigned int) rbdata->rectangle.height-1);
               }
 
             device_event = (XIDeviceEvent*) x_event->xcookie.data;
@@ -871,13 +871,13 @@ region_filter_func (GdkXEvent *xevent, GdkEvent *event, RbData *rbdata)
             TRACE ("Draw the new rectangle");
             if (rbdata->rectangle.width > 0 && rbdata->rectangle.height > 0)
               {
-                XDrawRectangle(display,
-                               root_window,
-                               *rbdata->context,
-                               (int) rbdata->rectangle.x,
-                               (int) rbdata->rectangle.y,
-                               (unsigned int) rbdata->rectangle.width-1,
-                               (unsigned int) rbdata->rectangle.height-1);
+                XDrawRectangle (display,
+                                root_window,
+                                *rbdata->context,
+                                rbdata->rectangle.x,
+                                rbdata->rectangle.y,
+                                (unsigned int) rbdata->rectangle.width-1,
+                                (unsigned int) rbdata->rectangle.height-1);
               }
           }
         return GDK_FILTER_REMOVE;
@@ -897,13 +897,13 @@ region_filter_func (GdkXEvent *xevent, GdkEvent *event, RbData *rbdata)
                     /* Remove the rectangle drawn previously */
                     TRACE ("Remove the rectangle drawn previously");
 
-                    XDrawRectangle(display,
-                                  root_window,
-                                  *rbdata->context,
-                                  (int) rbdata->rectangle.x,
-                                  (int) rbdata->rectangle.y,
-                                  (unsigned int) rbdata->rectangle.width-1,
-                                  (unsigned int) rbdata->rectangle.height-1);
+                    XDrawRectangle (display,
+                                   root_window,
+                                   *rbdata->context,
+                                   rbdata->rectangle.x,
+                                   rbdata->rectangle.y,
+                                   (unsigned int) rbdata->rectangle.width-1,
+                                   (unsigned int) rbdata->rectangle.height-1);
                   }
               }
 
@@ -1001,7 +1001,7 @@ static GdkPixbuf
   gdk_pointer_ungrab (GDK_CURRENT_TIME);
   gdk_keyboard_ungrab (GDK_CURRENT_TIME);
 
- /* Get the screenshot's pixbuf */
+  /* Get the screenshot's pixbuf */
   if (G_LIKELY (!rbdata.cancelled))
     {
       TRACE ("Get the pixbuf for the screenshot");

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


More information about the Xfce4-commits mailing list