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 676569 - Use GTK_STYLE_CLASS_OSD
Use GTK_STYLE_CLASS_OSD
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: VoIP
2.33.x
Other Linux
: Normal enhancement
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2012-05-22 14:57 UTC by Guillaume Desmottes
Modified: 2012-05-31 20:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
call-window: use GTK_STYLE_CLASS_OSD (1.61 KB, patch)
2012-05-22 15:02 UTC, Guillaume Desmottes
none Details | Review
screenshot (117.66 KB, image/png)
2012-05-22 15:03 UTC, Guillaume Desmottes
  Details
call-window: use GTK_STYLE_CLASS_OSD for the floating toolbar (3.19 KB, patch)
2012-05-25 17:35 UTC, Cosimo Cecchi
committed Details | Review
call-window: use a linked style for the OSD toolbar buttons (7.48 KB, patch)
2012-05-25 17:35 UTC, Cosimo Cecchi
committed Details | Review

Description Guillaume Desmottes 2012-05-22 14:57:54 UTC
From empathy-call-window.c:

  /* FIXME: we should use a stock "OSD" style class for the toolbar,
   * once it's available in GTK+/Adwaita.
   */
Comment 1 Guillaume Desmottes 2012-05-22 15:02:37 UTC
Created attachment 214663 [details] [review]
call-window: use GTK_STYLE_CLASS_OSD
Comment 2 Guillaume Desmottes 2012-05-22 15:03:53 UTC
Created attachment 214664 [details]
screenshot

Here is how it looks like with this patch. The toolbar looks pretty big to me, is that normal?

We shouldn't forget to bump the Gtk+ dep to 3.5.1 before merging this.
Comment 3 Cosimo Cecchi 2012-05-25 17:35:49 UTC
Created attachment 214967 [details] [review]
call-window: use GTK_STYLE_CLASS_OSD for the floating toolbar
Comment 4 Cosimo Cecchi 2012-05-25 17:35:55 UTC
Created attachment 214968 [details] [review]
call-window: use a linked style for the OSD toolbar buttons

Pack the camera/volume/mic buttons in a GtkBox, so they get linked
together by the theme.
Also, use symbolic icons for the buttons in the toolbar, in GNOME 3
style.
Comment 5 Cosimo Cecchi 2012-05-25 17:39:15 UTC
Hey Guillaume, I spent some time yesterday on improving the style for OSD toolbars in Adwaita
- the first patch here is analogous to your initial patch
- the second one reworks how buttons are packed into the toolbar container, to get a linked effect from the theme automatically, and turns the icons into symbolic

You need gnome-themes-standard master to get the intended style if you want to test them.
Comment 6 Guillaume Desmottes 2012-05-28 10:53:55 UTC
Thanks a lot for your work on this Cosimo.

The toolbar still seems pretty massive to me. Can't we reduce its height a bit?
Comment 7 Cosimo Cecchi 2012-05-28 13:53:21 UTC
(In reply to comment #6)
> Thanks a lot for your work on this Cosimo.
> 
> The toolbar still seems pretty massive to me. Can't we reduce its height a bit?

Yeah, the theme was still adding too much vertical padding to the buttons. I now fixed this in git master of gnome-themes-standard to match the mockups here [1].

[1] https://github.com/gnome-design-team/gnome-mockups/raw/master/theming/widgets/widget-factory.png
Comment 8 Guillaume Desmottes 2012-05-28 14:35:04 UTC
Looks good, please merge to master.

Btw, the toolbar doesn't seem to have the rounded corner as in the mockup here.
Comment 9 Cosimo Cecchi 2012-05-31 20:25:53 UTC
Attachment 214967 [details] pushed as a018456 - call-window: use GTK_STYLE_CLASS_OSD for the floating toolbar
Attachment 214968 [details] pushed as a402dd4 - call-window: use a linked style for the OSD toolbar buttons

Thanks, pushed to master.
I will investigate the missing rounded corners, it seems to be a more general problem.