[gnome-control-center/wip/animated-notebook] shell: Let the theme do its magic on our widget



commit 6c28e285098e382988bea82c7fc9375c0bac9e8f
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 4 17:22:01 2012 +0100

    shell: Let the theme do its magic on our widget

 shell/TODO          |    1 -
 shell/cc-notebook.c |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/shell/TODO b/shell/TODO
index 3f5e69d..5c12766 100644
--- a/shell/TODO
+++ b/shell/TODO
@@ -2,7 +2,6 @@
   the children list order affects the paint order - so you can use set_child_above_sibling/set_child_below_sibling
 - Add a scroll direction to the animation
   (back to parent to the left, to a child to the right)
-- Figure out stage colour, from theme
 - Only destroy the existing panel once we've finished scrolling
   - get_transition('scroll-to') after calling scroll_to_point(), and connect to the 'completed' signal on it
   - alternatively, you can use 'transitions-completed' on the actor
diff --git a/shell/cc-notebook.c b/shell/cc-notebook.c
index 8f43e8c..c1e838d 100644
--- a/shell/cc-notebook.c
+++ b/shell/cc-notebook.c
@@ -258,7 +258,6 @@ cc_notebook_init (CcNotebook *self)
         gtk_widget_show (self->priv->embed);
 
         self->priv->stage = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (self->priv->embed));
-        clutter_actor_set_background_color (self->priv->stage, CLUTTER_COLOR_Red);
 
         self->priv->scroll = clutter_scroll_actor_new ();
         clutter_scroll_actor_set_scroll_mode (CLUTTER_SCROLL_ACTOR (self->priv->scroll),
@@ -270,6 +269,7 @@ cc_notebook_init (CcNotebook *self)
         clutter_actor_add_child (self->priv->scroll, self->priv->bin);
 
         self->priv->selected_page = NULL;
+        gtk_widget_set_name (GTK_WIDGET (self), "GtkBox");
 }
 
 GtkWidget *



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