[totem] backend: Add _set_child() helper
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Add _set_child() helper
- Date: Wed, 27 Jun 2012 11:55:42 +0000 (UTC)
commit 06a0a1ab0ff368b36675a3d1a433cf302a8124a9
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jun 27 12:21:13 2012 +0100
backend: Add _set_child() helper
Instead of calling MxBin's.
src/backend/totem-aspect-frame.c | 9 +++++++++
src/backend/totem-aspect-frame.h | 3 +++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/totem-aspect-frame.c b/src/backend/totem-aspect-frame.c
index 6af71af..44bedc8 100644
--- a/src/backend/totem-aspect-frame.c
+++ b/src/backend/totem-aspect-frame.c
@@ -322,3 +322,12 @@ totem_aspect_frame_get_expand (TotemAspectFrame *frame)
g_return_val_if_fail (TOTEM_IS_ASPECT_FRAME (frame), FALSE);
return frame->priv->expand;
}
+
+void
+totem_aspect_frame_set_child (TotemAspectFrame *frame,
+ ClutterActor *child)
+{
+ g_return_if_fail (TOTEM_IS_ASPECT_FRAME (frame));
+
+ mx_bin_set_child (MX_BIN (frame), child);
+}
diff --git a/src/backend/totem-aspect-frame.h b/src/backend/totem-aspect-frame.h
index 5f7700a..7d9560c 100644
--- a/src/backend/totem-aspect-frame.h
+++ b/src/backend/totem-aspect-frame.h
@@ -71,6 +71,9 @@ GType totem_aspect_frame_get_type (void) G_GNUC_CONST;
ClutterActor * totem_aspect_frame_new (void);
+void totem_aspect_frame_set_child (TotemAspectFrame *frame,
+ ClutterActor *child);
+
void totem_aspect_frame_set_expand (TotemAspectFrame *frame,
gboolean expand);
gboolean totem_aspect_frame_get_expand (TotemAspectFrame *frame);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]