[gnome-photos] Fix missing function prototypes errors



commit 7a1e9afb1d6c6cc1f23d037e00c5240a42d2265a
Author: Emanuele Aina <emanuele aina collabora com>
Date:   Fri Jun 28 11:52:40 2013 +0200

    Fix missing function prototypes errors
    
    Prepare for enabling compiler warnings without breaking the build
    since GNOME_COMPILE_WARNINGS uses -Werror=missing-prototypes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703269

 configure.ac                       |    3 +++
 libgd                              |    2 +-
 src/photos-dlna-renderers-dialog.c |    2 +-
 src/photos-embed.c                 |    4 ++--
 src/photos-main-toolbar.c          |    1 +
 src/photos-offset-controller.h     |    2 ++
 src/photos-properties-dialog.c     |    1 +
 7 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3723b58..ddd3675 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,6 +46,9 @@ AM_GLIB_GNU_GETTEXT
 
 LT_INIT
 
+# Used to keep eog-exif-util.c and eog-util.c aligned with EOG
+AC_CHECK_FUNCS(strptime)
+
 # ****************************************************************
 # Support for nl_langinfo (_NL_MEASUREMENT_MEASUREMENT) (optional)
 # ****************************************************************
diff --git a/libgd b/libgd
index 572fcf4..b66ca33 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 572fcf471c8d521ddbff7dab5be08450ec15c995
+Subproject commit b66ca33babf4865240d9d1fa732da4c90e49f536
diff --git a/src/photos-dlna-renderers-dialog.c b/src/photos-dlna-renderers-dialog.c
index f18b6ae..c3d4602 100644
--- a/src/photos-dlna-renderers-dialog.c
+++ b/src/photos-dlna-renderers-dialog.c
@@ -209,7 +209,7 @@ photos_dlna_renderers_dialog_add_renderer (PhotosDlnaRenderersDialog *self,
 }
 
 
-void
+static void
 photos_dlna_renderers_dialog_response_cb (GtkDialog *dialog,
                                           gint       response_id,
                                           gpointer   user_data)
diff --git a/src/photos-embed.c b/src/photos-embed.c
index ddfa5bf..c1dcd45 100644
--- a/src/photos-embed.c
+++ b/src/photos-embed.c
@@ -323,7 +323,7 @@ photos_embed_prepare_for_preview (PhotosEmbed *self)
 }
 
 
-void
+static void
 photos_embed_set_error (PhotosEmbed *self, const gchar *primary, const gchar *secondary)
 {
   PhotosEmbedPrivate *priv = self->priv;
@@ -340,7 +340,7 @@ photos_embed_query_error (PhotosEmbed *self, const gchar *primary, const gchar *
 }
 
 
-void
+static void
 photos_embed_query_status_changed (PhotosTrackerController *trk_cntrlr, gboolean querying, gpointer 
user_data)
 {
   PhotosEmbed *self = PHOTOS_EMBED (user_data);
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 498e3c8..b9e6fe2 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -32,6 +32,7 @@
 
 #include "photos-application.h"
 #include "photos-collection-manager.h"
+#include "photos-dlna-renderers-manager.h"
 #include "photos-header-bar.h"
 #include "photos-item-manager.h"
 #include "photos-main-toolbar.h"
diff --git a/src/photos-offset-controller.h b/src/photos-offset-controller.h
index bf3bf66..6813160 100644
--- a/src/photos-offset-controller.h
+++ b/src/photos-offset-controller.h
@@ -77,6 +77,8 @@ struct _PhotosOffsetControllerClass
 
 GType                       photos_offset_controller_get_type           (void) G_GNUC_CONST;
 
+PhotosOffsetController *    photos_offset_controller_new                (void);
+
 gint                        photos_offset_controller_get_count          (PhotosOffsetController *self);
 
 gint                        photos_offset_controller_get_offset         (PhotosOffsetController *self);
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index 30f4d2e..a3820a3 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -32,6 +32,7 @@
 #include "photos-item-manager.h"
 #include "photos-local-item.h"
 #include "photos-properties-dialog.h"
+#include "photos-utils.h"
 
 
 struct _PhotosPropertiesDialogPrivate


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]