[gnome-photos] source: Add a getter for name



commit c23a4eb54c37ad0d6f1b920d9ee96a0df636dca5
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Apr 2 13:42:21 2013 +0200

    source: Add a getter for name

 src/photos-source.c |    9 ++++++++-
 src/photos-source.h |    4 +++-
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-source.c b/src/photos-source.c
index b698547..de08266 100644
--- a/src/photos-source.c
+++ b/src/photos-source.c
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2013 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -256,3 +256,10 @@ photos_source_new_from_goa_object (GoaObject *object)
   g_return_val_if_fail (GOA_IS_OBJECT (object), NULL);
   return g_object_new (PHOTOS_TYPE_SOURCE, "object", object, NULL);
 }
+
+
+const gchar *
+photos_source_get_name (PhotosSource *self)
+{
+  return self->priv->name;
+}
diff --git a/src/photos-source.h b/src/photos-source.h
index f4df8e5..f406566 100644
--- a/src/photos-source.h
+++ b/src/photos-source.h
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2013 Red Hat, Inc.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -76,6 +76,8 @@ PhotosSource       *photos_source_new                    (const gchar *id, const
 
 PhotosSource       *photos_source_new_from_goa_object    (GoaObject *object);
 
+const gchar        *photos_source_get_name               (PhotosSource *self);
+
 G_END_DECLS
 
 #endif /* PHOTOS_SOURCE_H */


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