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 656571 - Call toolbar has some odd things
Call toolbar has some odd things
Status: RESOLVED OBSOLETE
Product: empathy
Classification: Core
Component: VoIP
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2011-08-15 13:13 UTC by Jonny Lamb
Modified: 2018-05-22 14:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (261.76 KB, image/png)
2011-08-15 13:13 UTC, Jonny Lamb
  Details
Display the preview video button in the preview corner (1.64 KB, patch)
2011-08-15 23:58 UTC, Emilio Pozuelo Monfort
committed Details | Review
Add some space between the status and the end of the toolbar (1.02 KB, patch)
2011-08-15 23:58 UTC, Emilio Pozuelo Monfort
committed Details | Review
CallWindow: fix typo (5.74 KB, patch)
2011-08-16 11:37 UTC, Emilio Pozuelo Monfort
committed Details | Review

Description Jonny Lamb 2011-08-15 13:13:58 UTC
Created attachment 193866 [details]
screenshot

Check out my awesome screenshot. That's me lolling.

1. The i button attached to the preview appears to be in the middle of nowhere and just looks really weird to me.

2. The rounded corners of the toolbar are really jagged.

3. The label on the right hand side of the toolbar is too close to the edge.

4. The preview is in a really weird place. Why is it nearly half-way up the window?
Comment 1 Emilio Pozuelo Monfort 2011-08-15 23:21:09 UTC
(In reply to comment #0)
> Created an attachment (id=193866) [details]
> screenshot
> 
> Check out my awesome screenshot. That's me lolling.
> 
> 1. The i button attached to the preview appears to be in the middle of nowhere
> and just looks really weird to me.

Indeed, I guess I forgot to update it's position when doing the move-preview stuff. I'll fix it.

> 2. The rounded corners of the toolbar are really jagged.

I'll see if I can make it smoother.

> 3. The label on the right hand side of the toolbar is too close to the edge.

We can add some padding there.

> 4. The preview is in a really weird place. Why is it nearly half-way up the
> window?

Because if we don't do that and you make the window smaller, the preview will be on top of the toolbar (or viceversa).
Comment 2 Emilio Pozuelo Monfort 2011-08-15 23:58:08 UTC
Created attachment 193901 [details] [review]
Display the preview video button in the preview corner
Comment 3 Emilio Pozuelo Monfort 2011-08-15 23:58:12 UTC
Created attachment 193902 [details] [review]
Add some space between the status and the end of the toolbar
Comment 4 Emilio Pozuelo Monfort 2011-08-16 00:00:56 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > 2. The rounded corners of the toolbar are really jagged.
> 
> I'll see if I can make it smoother.

This is done by cogl. The call is in empathy-rounded-actor.c:

  /* create and store a path describing a rounded rectangle */
  cogl_path_round_rectangle (0, 0, width, height, height / 2, 0.1);

Making arc_step (the last argument) smaller should make it less jagged, but setting it to 0.01 makes the window somewhat slow without any real differences. Not sure how to make this better.
Comment 5 Guillaume Desmottes 2011-08-16 07:36:56 UTC
Review of attachment 193902 [details] [review]:

++
Comment 6 Guillaume Desmottes 2011-08-16 07:37:25 UTC
Review of attachment 193901 [details] [review]:

++
Comment 7 Jonny Lamb 2011-08-16 07:43:08 UTC
Review of attachment 193901 [details] [review]:

::: src/empathy-call-window.c
@@ +992,3 @@
+  clutter_actor_set_size (box,
+      SELF_VIDEO_SECTION_WIDTH,
+      SELF_VIDEO_SECTION_HEIGTH + SELF_VIDEO_SECTION_MARGIN);

HEIGHT not HEIGTH
Comment 8 Emilio Pozuelo Monfort 2011-08-16 11:37:35 UTC
Created attachment 193932 [details] [review]
CallWindow: fix typo
Comment 9 Guillaume Desmottes 2011-08-16 11:57:26 UTC
Review of attachment 193932 [details] [review]:

++
Comment 10 Emilio Pozuelo Monfort 2011-08-16 12:08:17 UTC
Remaining here:

2. The rounded corners of the toolbar are really jagged.
Comment 11 Emilio Pozuelo Monfort 2011-09-09 10:12:38 UTC
(In reply to comment #10)
> Remaining here:
> 
> 2. The rounded corners of the toolbar are really jagged.

I think the problem is that we do the clip with cogl, which is aliased.
Comment 12 Emilio Pozuelo Monfort 2011-09-19 14:56:54 UTC
We should paint the GtkWidget inside a ClutterCairoTexture and then do the cliping with cairo.
Comment 13 Emilio Pozuelo Monfort 2011-09-19 15:28:42 UTC
Actually doing that would probably be kinda complex as we would have to forward events ourselves (GtkClutterActor does that for us)
Comment 14 Emilio Pozuelo Monfort 2011-09-23 14:00:23 UTC
This will be easy when bug #659944 is fixed.
Comment 15 Emilio Pozuelo Monfort 2011-09-23 14:14:47 UTC
The way to fix this when that bug's fixed is to clip the corners of the image surface using Cairo, see cairo_clip()
Comment 16 GNOME Infrastructure Team 2018-05-22 14:58:48 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/empathy/issues/410.