[gnome-photos] application, remote-display-manager: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application, remote-display-manager: Style fixes
- Date: Wed, 21 Jan 2015 12:40:29 +0000 (UTC)
commit eab35a4dc44f8abbe5590cd83a63a30226237425
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jan 21 11:54:31 2015 +0100
application, remote-display-manager: Style fixes
src/photos-application.c | 2 +
src/photos-remote-display-manager.c | 46 ++++++++++++++++++----------------
2 files changed, 26 insertions(+), 22 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 301206b..3428c24 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -145,6 +145,7 @@ photos_application_refresh_data_free (PhotosApplicationRefreshData *data)
g_slice_free (PhotosApplicationRefreshData, data);
}
+
static void
photos_application_help (PhotosApplication *self, GVariant *parameter)
{
@@ -155,6 +156,7 @@ photos_application_help (PhotosApplication *self, GVariant *parameter)
GDK_CURRENT_TIME, NULL);
}
+
static void
photos_application_about (PhotosApplication *self, GVariant *parameter)
{
diff --git a/src/photos-remote-display-manager.c b/src/photos-remote-display-manager.c
index 32db26e..c0eb728 100644
--- a/src/photos-remote-display-manager.c
+++ b/src/photos-remote-display-manager.c
@@ -21,20 +21,13 @@
#include "config.h"
-#include "photos-remote-display-manager.h"
-
#include <gio/gio.h>
#include "photos-dlna-renderers-manager.h"
#include "photos-filterable.h"
+#include "photos-remote-display-manager.h"
-typedef struct {
- PhotosRemoteDisplayManager *manager;
- PhotosDlnaRenderer *renderer;
- PhotosBaseItem *item;
-} Share;
-
struct _PhotosRemoteDisplayManagerPrivate
{
PhotosDlnaRenderersManager *renderers_mngr;
@@ -53,9 +46,20 @@ static guint signals[LAST_SIGNAL] = { 0 };
static GObject *remote_display_manager_singleton = NULL;
+
G_DEFINE_TYPE_WITH_PRIVATE (PhotosRemoteDisplayManager, photos_remote_display_manager, G_TYPE_OBJECT);
+typedef struct _Share Share;
+
+struct _Share
+{
+ PhotosRemoteDisplayManager *manager;
+ PhotosDlnaRenderer *renderer;
+ PhotosBaseItem *item;
+};
+
+
static Share *
photos_remote_display_manager_share_new (PhotosRemoteDisplayManager *manager,
PhotosDlnaRenderer *renderer,
@@ -80,6 +84,7 @@ photos_remote_display_manager_share_destroy (Share *share)
g_free (share);
}
+
static void
photos_remote_display_manager_dispose (GObject *object)
{
@@ -94,8 +99,8 @@ photos_remote_display_manager_dispose (GObject *object)
static GObject *
-photos_remote_display_manager_constructor (GType type,
- guint n_construct_params,
+photos_remote_display_manager_constructor (GType type,
+ guint n_construct_params,
GObjectConstructParam *construct_params)
{
if (remote_display_manager_singleton != NULL)
@@ -110,10 +115,11 @@ photos_remote_display_manager_constructor (GType type,
return remote_display_manager_singleton;
}
+
static void
photos_remote_display_manager_renderer_lost_cb (PhotosRemoteDisplayManager *self,
- PhotosDlnaRenderer *renderer,
- gpointer user_data)
+ PhotosDlnaRenderer *renderer,
+ gpointer user_data)
{
PhotosRemoteDisplayManagerPrivate *priv = self->priv;
@@ -121,6 +127,7 @@ photos_remote_display_manager_renderer_lost_cb (PhotosRemoteDisplayManager *self
photos_remote_display_manager_stop (self);
}
+
static void
photos_remote_display_manager_init (PhotosRemoteDisplayManager *self)
{
@@ -137,6 +144,7 @@ photos_remote_display_manager_init (PhotosRemoteDisplayManager *self)
G_CONNECT_SWAPPED);
}
+
static void
photos_remote_display_manager_class_init (PhotosRemoteDisplayManagerClass *class)
{
@@ -166,9 +174,7 @@ photos_remote_display_manager_class_init (PhotosRemoteDisplayManagerClass *class
static void
-photos_remote_display_manager_share_cb (GObject *source_object,
- GAsyncResult *res,
- gpointer user_data)
+photos_remote_display_manager_share_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
{
Share *share = user_data;
PhotosDlnaRenderer *renderer = PHOTOS_DLNA_RENDERER (source_object);
@@ -196,9 +202,7 @@ out:
static void
-photos_remote_display_manager_unshare_all_cb (GObject *source_object,
- GAsyncResult *res,
- gpointer user_data)
+photos_remote_display_manager_unshare_all_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
{
PhotosDlnaRenderer *renderer = PHOTOS_DLNA_RENDERER (source_object);
PhotosRemoteDisplayManager *self = PHOTOS_REMOTE_DISPLAY_MANAGER (user_data);
@@ -227,8 +231,7 @@ photos_remote_display_manager_dup_singleton (void)
void
-photos_remote_display_manager_set_renderer (PhotosRemoteDisplayManager *self,
- PhotosDlnaRenderer *renderer)
+photos_remote_display_manager_set_renderer (PhotosRemoteDisplayManager *self, PhotosDlnaRenderer *renderer)
{
PhotosRemoteDisplayManagerPrivate *priv = self->priv;
@@ -247,8 +250,7 @@ photos_remote_display_manager_get_renderer (PhotosRemoteDisplayManager *self)
void
-photos_remote_display_manager_render (PhotosRemoteDisplayManager *self,
- PhotosBaseItem *item)
+photos_remote_display_manager_render (PhotosRemoteDisplayManager *self, PhotosBaseItem *item)
{
PhotosRemoteDisplayManagerPrivate *priv = self->priv;
Share *share;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]