diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-12 21:32:53 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-12 21:32:53 +0800 |
commit | 0bfcc411b56b617a1b80589a7f686e506496b259 (patch) | |
tree | f455b401fd5f0aa45cc233fcb9e6890a9e17a215 | |
parent | 46e0d580594711e418517c2fb355247129b256f2 (diff) | |
download | gsoc2013-empathy-0bfcc411b56b617a1b80589a7f686e506496b259.tar gsoc2013-empathy-0bfcc411b56b617a1b80589a7f686e506496b259.tar.gz gsoc2013-empathy-0bfcc411b56b617a1b80589a7f686e506496b259.tar.bz2 gsoc2013-empathy-0bfcc411b56b617a1b80589a7f686e506496b259.tar.lz gsoc2013-empathy-0bfcc411b56b617a1b80589a7f686e506496b259.tar.xz gsoc2013-empathy-0bfcc411b56b617a1b80589a7f686e506496b259.tar.zst gsoc2013-empathy-0bfcc411b56b617a1b80589a7f686e506496b259.zip |
Update the constraint when the stage allocation changes
Instead of when the box does, to avoid a warning.
-rw-r--r-- | src/empathy-call-window.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 15a3c857a..4a9287dc8 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -843,13 +843,13 @@ empathy_call_window_destroyed_cb (GtkWidget *object, } static void -empathy_call_window_video_box_allocation_changed_cb (ClutterActor *video_box, +empathy_call_window_stage_allocation_changed_cb (ClutterActor *stage, GParamSpec *pspec, ClutterBindConstraint *constraint) { ClutterActorBox allocation; - clutter_actor_get_allocation_box (video_box, &allocation); + clutter_actor_get_allocation_box (stage, &allocation); clutter_bind_constraint_set_offset (constraint, allocation.y2 - allocation.y1 - @@ -995,13 +995,16 @@ empathy_call_window_init (EmpathyCallWindow *self) gtk_widget_reparent (priv->bottom_toolbar, gtk_clutter_actor_get_widget (GTK_CLUTTER_ACTOR (priv->floating_toolbar))); - constraint = clutter_bind_constraint_new (priv->video_box, + constraint = clutter_bind_constraint_new ( + gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (priv->video_container)), CLUTTER_BIND_Y, 0); clutter_actor_add_constraint (priv->floating_toolbar, constraint); - g_signal_connect (priv->video_box, "notify::allocation", - G_CALLBACK (empathy_call_window_video_box_allocation_changed_cb), + g_signal_connect ( + gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (priv->video_container)), + "notify::allocation", + G_CALLBACK (empathy_call_window_stage_allocation_changed_cb), constraint); clutter_actor_set_size (priv->floating_toolbar, |