[Xfce4-commits] [xfce/xfce4-settings] 26/27: Fix indentation and code formatting
noreply at xfce.org
noreply at xfce.org
Sun Feb 25 23:56:35 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 e60b12faecba833979025ea83a2abe41c419782b
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Feb 25 23:42:34 2018 +0100
Fix indentation and code formatting
---
dialogs/accessibility-settings/find-cursor.c | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/dialogs/accessibility-settings/find-cursor.c b/dialogs/accessibility-settings/find-cursor.c
index 4f2016c..5dc3bd8 100644
--- a/dialogs/accessibility-settings/find-cursor.c
+++ b/dialogs/accessibility-settings/find-cursor.c
@@ -46,17 +46,17 @@ gint screenshot_offset_x, screenshot_offset_y;
gint workaround_offset = 1;
-gboolean timeout (gpointer data)
-{
+
+gboolean timeout (gpointer data) {
GtkWidget *widget = GTK_WIDGET (data);
gtk_widget_queue_draw (widget);
return TRUE;
}
+
static GdkPixbuf *
-get_rectangle_screenshot (gint x, gint y)
-{
+get_rectangle_screenshot (gint x, gint y) {
GdkPixbuf *screenshot = NULL;
GdkWindow *root_window = gdk_get_default_root_window ();
GdkColormap *colormap = gdk_colormap_get_system();
@@ -85,13 +85,13 @@ get_rectangle_screenshot (gint x, gint y)
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;
}
+
static gboolean
find_cursor_window_composited (GtkWidget *widget) {
gboolean composited;
@@ -187,9 +187,9 @@ find_cursor_window_expose (GtkWidget *widget,
}
+
gint
-main (gint argc, gchar **argv)
-{
+main (gint argc, gchar **argv) {
XfconfChannel *accessibility_channel = NULL;
GError *error = NULL;
GtkWidget *window;
@@ -198,8 +198,7 @@ main (gint argc, gchar **argv)
gboolean composited;
/* initialize xfconf */
- if (!xfconf_init (&error))
- {
+ if (!xfconf_init (&error)) {
/* print error and exit */
g_error ("Failed to connect to xfconf daemon: %s.", error->message);
g_error_free (error);
@@ -264,7 +263,7 @@ main (gint argc, gchar **argv)
gtk_main ();
- xfconf_shutdown();
+ xfconf_shutdown ();
return 0;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list