[Xfce4-commits] [apps/xfdashboard] 17/19: Fix code layout
noreply at xfce.org
noreply at xfce.org
Fri Jun 16 10:56:48 CEST 2017
This is an automated email from the git hooks/post-receive script.
n o m a d 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/xfdashboard.
commit 7a62c8afa95cb9eda2ee53cbdba95d734d46ed6f
Author: Stephan Haller <nomad at froevel.de>
Date: Fri Jun 16 09:35:28 2017 +0200
Fix code layout
Addresses issue GH #129
---
libxfdashboard/window-tracker-backend.c | 40 ++++++++++++++++-----------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/libxfdashboard/window-tracker-backend.c b/libxfdashboard/window-tracker-backend.c
index 8bcbd03..b858c6d 100644
--- a/libxfdashboard/window-tracker-backend.c
+++ b/libxfdashboard/window-tracker-backend.c
@@ -49,7 +49,26 @@ G_DEFINE_INTERFACE(XfdashboardWindowTrackerBackend,
G_OBJECT_TYPE_NAME(self), \
vfunc);
-static XfdashboardWindowTrackerBackend *_xfdashboard_window_tracker_backend_singleton=NULL;
+struct _XfdashboardWindowTrackerBackendMap
+{
+ const gchar *backendID;
+ const gchar *clutterBackendID;
+ XfdashboardWindowTrackerBackend* (*createBackend)(void);
+};
+typedef struct _XfdashboardWindowTrackerBackendMap XfdashboardWindowTrackerBackendMap;
+
+static XfdashboardWindowTrackerBackendMap _xfdashboard_window_tracker_backend_map[]=
+ {
+#ifdef CLUTTER_WINDOWING_X11
+ { "x11", CLUTTER_WINDOWING_X11, xfdashboard_window_tracker_backend_x11_new },
+#endif
+#ifdef CLUTTER_WINDOWING_GDK
+ { "gdk", CLUTTER_WINDOWING_GDK, xfdashboard_window_tracker_backend_gdk_new },
+#endif
+ { NULL, NULL, NULL }
+ };
+
+static XfdashboardWindowTrackerBackend *_xfdashboard_window_tracker_backend_singleton=NULL;
/* IMPLEMENTATION: GObject */
@@ -72,25 +91,6 @@ void xfdashboard_window_tracker_backend_default_init(XfdashboardWindowTrackerBac
/* IMPLEMENTATION: Public API */
-struct _XfdashboardWindowTrackerBackendMap
-{
- const gchar *backendID;
- const gchar *clutterBackendID;
- XfdashboardWindowTrackerBackend* (*createBackend)(void);
-};
-typedef struct _XfdashboardWindowTrackerBackendMap XfdashboardWindowTrackerBackendMap;
-
-XfdashboardWindowTrackerBackendMap _xfdashboard_window_tracker_backend_map[]=
- {
-#ifdef CLUTTER_WINDOWING_X11
- { "x11", CLUTTER_WINDOWING_X11, xfdashboard_window_tracker_backend_x11_new },
-#endif
-#ifdef CLUTTER_WINDOWING_GDK
- { "gdk", CLUTTER_WINDOWING_GDK, xfdashboard_window_tracker_backend_gdk_new },
-#endif
- { NULL, NULL, NULL }
- };
-
/**
* xfdashboard_window_tracker_backend_get_default:
*
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list