[Xfce4-commits] <ristretto:master> Cleanup the code in wallpaper_manager
Stephan Arts
noreply at xfce.org
Thu Sep 15 00:18:01 CEST 2011
Updating branch refs/heads/master
to 8df3d10454f64247f56f5f8da33e70e1acc3ff2e (commit)
from 98f5e8e9b67a408a9149437e2230a8e5c84d8294 (commit)
commit 8df3d10454f64247f56f5f8da33e70e1acc3ff2e
Author: Stephan Arts <stephan at xfce.org>
Date: Wed Sep 14 23:57:57 2011 +0200
Cleanup the code in wallpaper_manager
src/wallpaper_manager.c | 16 ++++++++++------
src/wallpaper_manager.h | 31 +++++++++++++++++++++++--------
2 files changed, 33 insertions(+), 14 deletions(-)
diff --git a/src/wallpaper_manager.c b/src/wallpaper_manager.c
index db04726..778488d 100644
--- a/src/wallpaper_manager.c
+++ b/src/wallpaper_manager.c
@@ -27,7 +27,9 @@
#include "wallpaper_manager.h"
gint
-rstto_wallpaper_manager_configure_dialog_run (RsttoWallpaperManager *self, GFile *file)
+rstto_wallpaper_manager_configure_dialog_run (
+ RsttoWallpaperManager *self,
+ GFile *file)
{
return RSTTO_WALLPAPER_MANAGER_GET_IFACE (self)->configure_dialog_run(self, file);
}
@@ -39,7 +41,9 @@ rstto_wallpaper_manager_check_running (RsttoWallpaperManager *self)
}
gboolean
-rstto_wallpaper_manager_set (RsttoWallpaperManager *self, GFile *file)
+rstto_wallpaper_manager_set (
+ RsttoWallpaperManager *self,
+ GFile *file)
{
return RSTTO_WALLPAPER_MANAGER_GET_IFACE (self)->set (self, file);
}
@@ -49,7 +53,6 @@ static void
rstto_wallpaper_manager_iface_init (gpointer g_iface)
{
RsttoWallpaperManagerIface *iface = (RsttoWallpaperManagerIface *)g_iface;
- iface->configure_dialog_run = rstto_wallpaper_manager_configure_dialog_run;
}
@@ -65,10 +68,11 @@ rstto_wallpaper_manager_get_type (void)
NULL, /* base_finalize */
};
- iface_type = g_type_register_static (G_TYPE_INTERFACE, "RsttoWallpaperManagerIface",
- &info, 0);
+ iface_type = g_type_register_static (
+ G_TYPE_INTERFACE,
+ "RsttoWallpaperManagerIface",
+ &info, 0);
}
return iface_type;
-
}
diff --git a/src/wallpaper_manager.h b/src/wallpaper_manager.h
index f343504..374910b 100644
--- a/src/wallpaper_manager.h
+++ b/src/wallpaper_manager.h
@@ -21,10 +21,19 @@
G_BEGIN_DECLS
-#define RSTTO_WALLPAPER_MANAGER_TYPE rstto_wallpaper_manager_get_type ()
-#define RSTTO_WALLPAPER_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RSTTO_WALLPAPER_MANAGER_TYPE, RsttoWallpaperManager))
-#define RSTTO_IS_WALLPAPER_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RSTTO_WALLPAPER_MANAGER_TYPE))
-#define RSTTO_WALLPAPER_MANAGER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), RSTTO_WALLPAPER_MANAGER_TYPE, RsttoWallpaperManagerIface))
+#define RSTTO_WALLPAPER_MANAGER_TYPE \
+ rstto_wallpaper_manager_get_type ()
+#define RSTTO_WALLPAPER_MANAGER(obj)( \
+ G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ RSTTO_WALLPAPER_MANAGER_TYPE, \
+ RsttoWallpaperManager))
+#define RSTTO_IS_WALLPAPER_MANAGER(obj)( \
+ G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ RSTTO_WALLPAPER_MANAGER_TYPE))
+#define RSTTO_WALLPAPER_MANAGER_GET_IFACE(inst)( \
+ G_TYPE_INSTANCE_GET_INTERFACE ((inst), \
+ RSTTO_WALLPAPER_MANAGER_TYPE, \
+ RsttoWallpaperManagerIface))
typedef struct _RsttoWallpaperManager RsttoWallpaperManager; /* dummy object */
typedef struct _RsttoWallpaperManagerIface RsttoWallpaperManagerIface;
@@ -37,15 +46,21 @@ struct _RsttoWallpaperManagerIface {
gboolean (*check_running) (RsttoWallpaperManager *self);
};
-GType rstto_wallpaper_manager_get_type (void);
+GType
+rstto_wallpaper_manager_get_type (void);
-gboolean rstto_wallpaper_manager_check_running (RsttoWallpaperManager *self);
+gboolean
+rstto_wallpaper_manager_check_running (RsttoWallpaperManager *self);
gint
-rstto_wallpaper_manager_configure_dialog_run (RsttoWallpaperManager *self, GFile *file);
+rstto_wallpaper_manager_configure_dialog_run (
+ RsttoWallpaperManager *self,
+ GFile *file);
gboolean
-rstto_wallpaper_manager_set (RsttoWallpaperManager *self, GFile *file);
+rstto_wallpaper_manager_set (
+ RsttoWallpaperManager *self,
+ GFile *file);
G_END_DECLS
More information about the Xfce4-commits
mailing list