[gnome-shell/wip/clutter-deprecation-fixes: 5/25] st-scroll-bar: Set the handle as a child of the bar, not the trough



commit ca17d190ec9cba13bbf35582d98f0f88d9bab69a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Feb 13 23:31:21 2012 -0500

    st-scroll-bar: Set the handle as a child of the bar, not the trough
    
    The handle was a child of the trough, but it was allocated and painted
    like it was a child of the bar. This will wreak havoc when we port over
    to the new Clutter API, so let's just make it a child of the bar.

 src/st/st-scroll-bar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-scroll-bar.c b/src/st/st-scroll-bar.c
index 80aa48a..9f64a53 100644
--- a/src/st/st-scroll-bar.c
+++ b/src/st/st-scroll-bar.c
@@ -1166,7 +1166,7 @@ st_scroll_bar_init (StScrollBar *self)
   self->priv->handle = (ClutterActor *) st_button_new ();
   clutter_actor_set_name (CLUTTER_ACTOR (self->priv->handle), "hhandle");
   clutter_actor_set_parent (CLUTTER_ACTOR (self->priv->handle),
-                            self->priv->trough);
+                            CLUTTER_ACTOR (self));
   g_signal_connect (self->priv->handle, "button-press-event",
                     G_CALLBACK (handle_button_press_event_cb), self);
 



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