[Xfce4-commits] [xfce/xfce4-settings] 05/09: More cleanups

noreply at xfce.org noreply at xfce.org
Sun Mar 11 13:37:27 CET 2018


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

b   l   u   e   s   a   b   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 xfce/xfce4-settings.

commit f4534b87e76e8a5618406ebee9383825dc0bbb97
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Feb 20 15:42:47 2018 +0100

    More cleanups
---
 dialogs/accessibility-settings/find-cursor.c | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/dialogs/accessibility-settings/find-cursor.c b/dialogs/accessibility-settings/find-cursor.c
index 3bf96fe..344538c 100644
--- a/dialogs/accessibility-settings/find-cursor.c
+++ b/dialogs/accessibility-settings/find-cursor.c
@@ -41,7 +41,9 @@ gboolean timeout (gpointer data)
 
 
 static void
-find_cursor_window_screen_changed (GtkWidget *widget, GdkScreen *old_screen, gpointer userdata) {
+find_cursor_window_screen_changed (GtkWidget *widget,
+                                   GdkScreen *old_screen,
+                                   gpointer userdata) {
     gboolean supports_alpha;
     GdkScreen *screen = gtk_widget_get_screen (widget);
     GdkVisual *visual = gdk_screen_get_rgba_visual (screen);
@@ -50,7 +52,7 @@ find_cursor_window_screen_changed (GtkWidget *widget, GdkScreen *old_screen, gpo
      * to call some fallback in non-composited envs */
     if (!visual) {
         g_warning ("Your screen does not support alpha channels!");
-        visual = gdk_screen_get_system_visual(screen);
+        visual = gdk_screen_get_system_visual (screen);
         supports_alpha = FALSE;
     } else {
         g_warning ("Your screen supports alpha channels!");
@@ -107,16 +109,20 @@ find_cursor_window_draw (GtkWidget      *window,
 gint
 main (gint argc, gchar **argv)
 {
-    gtk_init (&argc, &argv);
-
     GtkWidget     *window;
-    GdkDisplay    *display = gdk_display_get_default ();
-    GdkSeat       *seat = gdk_display_get_default_seat (display);
-    GdkDevice     *device = gdk_seat_get_pointer (seat);
-    GdkScreen     *screen = gdk_screen_get_default ();
+    GdkDisplay    *display;
+    GdkSeat       *seat;
+    GdkDevice     *device;
+    GdkScreen     *screen;
     gint           x,y;
 
+    gtk_init (&argc, &argv);
+
     /* just get the position of the mouse cursor */
+    display = gdk_display_get_default ();
+    seat = gdk_display_get_default_seat (display);
+    device = gdk_seat_get_pointer (seat);
+    screen = gdk_screen_get_default ();
     gdk_device_get_position (device, &screen, &x, &y);
 
     window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

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


More information about the Xfce4-commits mailing list