After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 656150 - Floating bottom toolbar
Floating bottom toolbar
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: VoIP
3.1.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks: 629902
 
 
Reported: 2011-08-08 10:14 UTC by Emilio Pozuelo Monfort
Modified: 2011-08-15 10:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
CallWindow: make the toolbar float inside the window (6.72 KB, patch)
2011-08-08 10:15 UTC, Emilio Pozuelo Monfort
none Details | Review
CallWindow: hide the toolbar after 3s of inactivity (4.50 KB, patch)
2011-08-08 10:15 UTC, Emilio Pozuelo Monfort
none Details | Review
CallWindow: show the toolbar when on fullscreen (936 bytes, patch)
2011-08-08 10:16 UTC, Emilio Pozuelo Monfort
none Details | Review
Add a GtkClutterActor subclass that clips the corners (5.76 KB, patch)
2011-08-08 10:16 UTC, Emilio Pozuelo Monfort
none Details | Review
Make the floating toolbar have rounded corners (1.12 KB, patch)
2011-08-08 10:16 UTC, Emilio Pozuelo Monfort
none Details | Review
Use a BindConstraint instead of a SnapConstraint (2.71 KB, patch)
2011-08-08 10:16 UTC, Emilio Pozuelo Monfort
none Details | Review
Move the video preview up (1.07 KB, patch)
2011-08-08 11:39 UTC, Emilio Pozuelo Monfort
none Details | Review

Description Emilio Pozuelo Monfort 2011-08-08 10:14:19 UTC
We want to make the bottom toolbar float inside the window, using clutter.
Comment 1 Emilio Pozuelo Monfort 2011-08-08 10:15:52 UTC
Created attachment 193403 [details] [review]
CallWindow: make the toolbar float inside the window
Comment 2 Emilio Pozuelo Monfort 2011-08-08 10:15:56 UTC
Created attachment 193404 [details] [review]
CallWindow: hide the toolbar after 3s of inactivity
Comment 3 Emilio Pozuelo Monfort 2011-08-08 10:16:00 UTC
Created attachment 193405 [details] [review]
CallWindow: show the toolbar when on fullscreen

And also hide it after 3s of inactivity.
Comment 4 Emilio Pozuelo Monfort 2011-08-08 10:16:05 UTC
Created attachment 193406 [details] [review]
Add a GtkClutterActor subclass that clips the corners
Comment 5 Emilio Pozuelo Monfort 2011-08-08 10:16:09 UTC
Created attachment 193407 [details] [review]
Make the floating toolbar have rounded corners
Comment 6 Emilio Pozuelo Monfort 2011-08-08 10:16:13 UTC
Created attachment 193408 [details] [review]
Use a BindConstraint instead of a SnapConstraint

It seems less hacky even though we need to change the constraint
when the allocation changes.
Comment 7 Emilio Pozuelo Monfort 2011-08-08 11:39:53 UTC
Created attachment 193414 [details] [review]
Move the video preview up

So it's not on top of the floating toolbar.
Comment 8 Danielle Madeley 2011-08-12 00:11:43 UTC
Review of attachment 193403 [details] [review]:

::: src/empathy-call-window.c
@@ +548,3 @@
   priv->video_preview = clutter_box_new (layout);
   clutter_actor_set_size (priv->video_preview,
+      SELF_VIDEO_SECTION_WIDTH + 10, SELF_VIDEO_SECTION_HEIGTH + 10 + 20 + 36);

What is 10+20+30 ? Why is it like that instead of +60? Can we use #defines here.
Comment 9 Danielle Madeley 2011-08-12 00:13:41 UTC
Review of attachment 193404 [details] [review]:

::: src/empathy-call-window.c
@@ +797,3 @@
+    {
+      g_source_remove (self->priv->inactivity_src);
+static gboolean

Unrequired assignment.
Comment 10 Danielle Madeley 2011-08-12 00:16:09 UTC
Review of attachment 193408 [details] [review]:

::: src/empathy-call-window.c
@@ +852,3 @@
+
+  clutter_bind_constraint_set_offset (constraint,
+  ClutterActorBox allocation;

Unrequired brackets.

@@ +996,3 @@
 
+  constraint = clutter_bind_constraint_new (priv->video_box,
+      CLUTTER_BIND_Y, 70);

What is 70?
Comment 11 Danielle Madeley 2011-08-12 00:16:34 UTC
Review of attachment 193414 [details] [review]:

::: src/empathy-call-window.c
@@ +555,3 @@
+      SELF_VIDEO_SECTION_WIDTH + 10,
+      SELF_VIDEO_SECTION_HEIGTH + 10 +
+      FLOATING_TOOLBAR_HEIGHT + FLOATING_TOOLBAR_SPACING);

What is 10?
Comment 12 Emilio Pozuelo Monfort 2011-08-12 13:25:31 UTC
(In reply to comment #8)
> Review of attachment 193403 [details] [review]:
> 
> ::: src/empathy-call-window.c
> @@ +548,3 @@
>    priv->video_preview = clutter_box_new (layout);
>    clutter_actor_set_size (priv->video_preview,
> +      SELF_VIDEO_SECTION_WIDTH + 10, SELF_VIDEO_SECTION_HEIGTH + 10 + 20 +
> 36);
> 
> What is 10+20+30 ? Why is it like that instead of +60? Can we use #defines
> here.

Another commit reverted that change, so I've squashed that commit.

(In reply to comment #9)
> Review of attachment 193404 [details] [review]:
> 
> ::: src/empathy-call-window.c
> @@ +797,3 @@
> +    {
> +      g_source_remove (self->priv->inactivity_src);
> +static gboolean
> 
> Unrequired assignment.

Removed.

(In reply to comment #10)
> Review of attachment 193408 [details] [review]:
> 
> ::: src/empathy-call-window.c
> @@ +852,3 @@
> +
> +  clutter_bind_constraint_set_offset (constraint,
> +  ClutterActorBox allocation;
> 
> Unrequired brackets.

Removed.

> @@ +996,3 @@
> 
> +  constraint = clutter_bind_constraint_new (priv->video_box,
> +      CLUTTER_BIND_Y, 70);
> 
> What is 70?

Just a random number to set an initial position for the toolbar, it's then updated to the correct position in empathy_call_window_video_box_allocation_changed_cb(). So I've changed it to 0 as 70 isn't really necessary.

(In reply to comment #11)
> Review of attachment 193414 [details] [review]:
> 
> ::: src/empathy-call-window.c
> @@ +555,3 @@
> +      SELF_VIDEO_SECTION_WIDTH + 10,
> +      SELF_VIDEO_SECTION_HEIGTH + 10 +
> +      FLOATING_TOOLBAR_HEIGHT + FLOATING_TOOLBAR_SPACING);
> 
> What is 10?

The preview margin (i.e. the space between the preview and the avatar/remote video borders. I've changed that to a define in a new commit (as that was already there).

I have also added a commit to fix a focus bug that I've just found.
Comment 13 Emilio Pozuelo Monfort 2011-08-12 13:36:07 UTC
And another commit to fix another warning.
Comment 14 Guillaume Desmottes 2011-08-15 10:50:15 UTC
++
Comment 15 Emilio Pozuelo Monfort 2011-08-15 10:58:53 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.