[gnome-photos] view-embed: Add the selection_toolbar to the overlay_layout
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] view-embed: Add the selection_toolbar to the overlay_layout
- Date: Thu, 2 Aug 2012 09:51:35 +0000 (UTC)
commit 36c1abdf3c8dc7064d3a2b4635c213f0494c5b38
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Aug 1 11:55:12 2012 +0200
view-embed: Add the selection_toolbar to the overlay_layout
src/photos-view-embed.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-view-embed.c b/src/photos-view-embed.c
index 0a8ac4a..63ca7f9 100644
--- a/src/photos-view-embed.c
+++ b/src/photos-view-embed.c
@@ -422,19 +422,27 @@ ClutterActor *
photos_view_embed_new (ClutterBinLayout *layout)
{
PhotosViewEmbed *self;
+ PhotosViewEmbedPrivate *priv;
+ ClutterActor *toolbar_actor;
ClutterLayoutManager *overlay_layout;
g_return_val_if_fail (CLUTTER_IS_BIN_LAYOUT (layout), NULL);
self = g_object_new (PHOTOS_TYPE_VIEW_EMBED, "layout-manager", CLUTTER_LAYOUT_MANAGER (layout), NULL);
+ priv = self->priv;
/* "layout-manager" being a non-construct property we can not use
* it from the constructed method :-(
*/
overlay_layout = clutter_actor_get_layout_manager (CLUTTER_ACTOR (self));
clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (overlay_layout),
- self->priv->contents_actor,
+ priv->contents_actor,
CLUTTER_BIN_ALIGNMENT_FILL,
CLUTTER_BIN_ALIGNMENT_FILL);
+ toolbar_actor = photos_selection_toolbar_get_actor (priv->selection_toolbar);
+ clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (overlay_layout),
+ toolbar_actor,
+ CLUTTER_BIN_ALIGNMENT_FIXED,
+ CLUTTER_BIN_ALIGNMENT_FIXED);
return CLUTTER_ACTOR (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]