[gnome-photos] embed: Implement get_main_toolbar



commit 88ba39fc5d0472a3bf884f7c84b3586cf8872593
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jan 29 09:40:10 2014 +0100

    embed: Implement get_main_toolbar

 src/photos-embed.c |    8 +++++++-
 src/photos-embed.h |    6 +++++-
 2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-embed.c b/src/photos-embed.c
index 89134a6..2e7230c 100644
--- a/src/photos-embed.c
+++ b/src/photos-embed.c
@@ -35,7 +35,6 @@
 #include "photos-error-box.h"
 #include "photos-indexing-notification.h"
 #include "photos-item-manager.h"
-#include "photos-main-toolbar.h"
 #include "photos-mode-controller.h"
 #include "photos-notification-manager.h"
 #include "photos-offset-overview-controller.h"
@@ -696,3 +695,10 @@ photos_embed_new (void)
 {
   return g_object_new (PHOTOS_TYPE_EMBED, NULL);
 }
+
+
+PhotosMainToolbar *
+photos_embed_get_main_toolbar (PhotosEmbed *self)
+{
+  return PHOTOS_MAIN_TOOLBAR (self->priv->toolbar);
+}
diff --git a/src/photos-embed.h b/src/photos-embed.h
index 9f4c813..16d1a35 100644
--- a/src/photos-embed.h
+++ b/src/photos-embed.h
@@ -1,6 +1,6 @@
 /*
  * Photos - access, organize and share your photos on GNOME
- * Copyright © 2012, 2013 Red Hat, Inc.
+ * Copyright © 2012, 2013, 2014 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
@@ -27,6 +27,8 @@
 
 #include <gtk/gtk.h>
 
+#include "photos-main-toolbar.h"
+
 G_BEGIN_DECLS
 
 #define PHOTOS_TYPE_EMBED (photos_embed_get_type ())
@@ -70,6 +72,8 @@ GType                  photos_embed_get_type               (void) G_GNUC_CONST;
 
 GtkWidget             *photos_embed_new                    (void);
 
+PhotosMainToolbar     *photos_embed_get_main_toolbar       (PhotosEmbed *self);
+
 G_END_DECLS
 
 #endif /* PHOTOS_EMBED_H */


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