[Xfce4-commits] [xfce/xfce4-settings] 23/27: Improve code formatting

noreply at xfce.org noreply at xfce.org
Sun Feb 25 23:56:32 CET 2018


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

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       x   f   c   e   -   4   .   1   2   
   in repository xfce/xfce4-settings.

commit 5a8d1e49413d922d23f6b6948fe4f3288cd2e50f
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Feb 25 15:48:21 2018 +0100

    Improve code formatting
---
 dialogs/accessibility-settings/find-cursor.c | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

diff --git a/dialogs/accessibility-settings/find-cursor.c b/dialogs/accessibility-settings/find-cursor.c
index 3a7ecf3..a7be008 100644
--- a/dialogs/accessibility-settings/find-cursor.c
+++ b/dialogs/accessibility-settings/find-cursor.c
@@ -54,8 +54,8 @@ gboolean timeout (gpointer data)
 }
 
 
-static GdkPixbuf
-*get_rectangle_screenshot (gint x, gint y)
+static GdkPixbuf *
+get_rectangle_screenshot (gint x, gint y)
 {
     GdkPixbuf *screenshot = NULL;
     GdkWindow *root_window = gdk_get_default_root_window ();
@@ -73,13 +73,10 @@ static GdkPixbuf
         y = 0;
     }
 
-    screenshot =
-        gdk_pixbuf_get_from_drawable (NULL, root_window, colormap,
-                                      x,
-                                      y,
-                                      0, 0,
-                                      width,
-                                      height);
+    screenshot = gdk_pixbuf_get_from_drawable (NULL, root_window, colormap,
+                                               x, y,
+                                               0, 0,
+                                               width, height);
     return screenshot;
 }
 
@@ -88,7 +85,7 @@ static GdkPixbuf
 static gboolean
 find_cursor_motion_notify_event (GtkWidget      *widget,
                                  GdkEventMotion *event,
-                                 gpointer userdata)
+                                 gpointer        userdata)
 {
     gtk_window_move (GTK_WINDOW (widget), event->x_root - CIRCLE_RADIUS, event->y_root - CIRCLE_RADIUS);
     return FALSE;
@@ -120,8 +117,8 @@ find_cursor_window_expose (GtkWidget       *widget,
                            GdkEventExpose  *event,
                            gpointer         user_data) {
     cairo_t *cr;
-    int i = 0;
-    int arcs = 1;
+    int      i = 0;
+    int      arcs = 1;
     gboolean composited = GPOINTER_TO_INT (user_data);
 
     cr = gdk_cairo_create (event->window);
@@ -245,7 +242,7 @@ main (gint argc, gchar **argv)
 
         pixbuf = get_rectangle_screenshot (screenshot_offset_x, screenshot_offset_y);
         if (!pixbuf)
-            g_warning("Getting screenshot failed");
+            g_warning ("Getting screenshot failed");
     }
     g_signal_connect (G_OBJECT (window), "expose-event",
                       G_CALLBACK (find_cursor_window_expose), GINT_TO_POINTER (composited));

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


More information about the Xfce4-commits mailing list