[gnome-control-center/wip/animated-notebook] shell: Size up the added notebook tabs



commit cd97e2ca65945911e4376d0201a793c84319dd2f
Author: Bastien Nocera <hadess hadess net>
Date:   Tue May 1 14:49:27 2012 +0100

    shell: Size up the added notebook tabs

 shell/cc-notebook.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index 06485bf..bc9efb7 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -44,9 +44,12 @@ void
 cc_notebook_add (CcNotebook *notebook,
 		 GtkWidget  *widget)
 {
+	ClutterConstraint *constraint;
 	ClutterActor *child;
 
 	child = gtk_clutter_actor_new_with_contents (widget);
+	constraint = clutter_bind_constraint_new (notebook->priv->bin, CLUTTER_BIND_SIZE, 0.0);
+	clutter_actor_add_constraint_with_name (child, "size", constraint);
 	clutter_actor_add_child (notebook->priv->bin, child);
 
 	notebook->priv->children = g_list_prepend (notebook->priv->children,



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