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 745346 - Use traditional title bars on Unity
Use traditional title bars on Unity
Status: RESOLVED FIXED
Product: baobab
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Baobab Maintainers
Baobab Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-03-01 00:34 UTC by darkxst
Modified: 2017-09-18 00:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use traditional titlebars in Unity (37.95 KB, patch)
2015-03-01 00:35 UTC, darkxst
none Details | Review
screenshot (61.35 KB, image/png)
2015-03-01 19:58 UTC, darkxst
  Details
Unity Screenshot (343.99 KB, image/png)
2015-03-01 21:09 UTC, darkxst
  Details
Use traditional titlebars in Unity (38.02 KB, patch)
2015-03-01 21:10 UTC, darkxst
none Details | Review
Use traditional titlebars in Unity (38.06 KB, patch)
2015-03-02 22:32 UTC, darkxst
none Details | Review
Use traditional titlebars in Unity (38.32 KB, patch)
2017-09-03 13:17 UTC, Jeremy Bicha
committed Details | Review

Description darkxst 2015-03-01 00:34:21 UTC
Ubuntu does not use headerbars in Unity. There are probably also DE's that don't want these.

Use "gtk-dialogs-use-header" setting to determine wether to use headerbars
Comment 1 darkxst 2015-03-01 00:35:03 UTC
Created attachment 298193 [details] [review]
Use traditional titlebars in Unity

Use "gtk-dialogs-use-header" setting to determine wether to use
headerbars
Comment 2 Stefano Facchini 2015-03-01 08:45:27 UTC
I'm not aware of any other GNOME application doing this, can you link at an example? I'd like to keep baobab coherent with the gnome ecosystem.
Comment 3 Paolo Borelli 2015-03-01 11:45:01 UTC
At least in gedit we are considering it. We use it to not have different UI on OSX, for the unity we did not decide yet since we do not like removing the magic open button... anyway this is OT :-)

darkxst: can you attach a screenshot of the result?
Comment 4 Paolo Borelli 2015-03-01 11:47:09 UTC
(In reply to Paolo Borelli from comment #3)
> At least in gedit we are considering it. We use it to not have different UI
> on OSX, for the unity we did not decide yet since we do not like removing
> the magic open button... anyway this is OT :-)
> 

Bleagh, I should not write while listening to another conversation... what I meant is: "We use it to have a different UI on OSX, for unity we did not decide yet..."
Comment 6 darkxst 2015-03-01 19:58:19 UTC
Created attachment 298228 [details]
screenshot
Comment 7 Paolo Borelli 2015-03-01 20:17:49 UTC
I am not opposed to this in principle, but that looks pretty bad...
Comment 8 Stefano Facchini 2015-03-01 20:20:37 UTC
(In reply to Paolo Borelli from comment #7)
> I am not opposed to this in principle, but that looks pretty bad...

Agree.. If the goal is making the app look good in Unity, I'm not sure this is the way
Comment 9 darkxst 2015-03-01 20:26:58 UTC
that screenshot was with the gnome theme, and some unrelated theme issues from gtk 3.15. The Ubuntu themes actually sytle the GtkHeaderBar widget differently (no rounded corners for example)
Comment 10 darkxst 2015-03-01 21:09:24 UTC
Created attachment 298230 [details]
Unity Screenshot

This is what it actually looks like under Unity
Comment 11 darkxst 2015-03-01 21:10:27 UTC
Created attachment 298231 [details] [review]
Use traditional titlebars in Unity

Use "gtk-dialogs-use-header" setting to determine wether to use
headerbars

Need to remove "titlebar" style class also
Comment 12 Stefano Facchini 2015-03-01 21:13:59 UTC
In any case, I think that it would be better to check explicitly that XDG_CURRENT_DESKTOP=="Unity" instead of using the gtk-dialogs-use-header setting
Comment 13 darkxst 2015-03-02 02:18:33 UTC
OK, if you prefer, although its not really generic in that case, there are other DE's out there that don't like headerbars, and while in Ubuntu most of these legacy type DE's use Unity for XDG_CURRENT_DESKTOP currently (I believe), not sure what happens in other distros. I was previously using XDG_CURRENT_DESKTOP!="GNOME" in most of my patches, but then maybe there are others that want them?  most of the recent patches I have seen are now using gtk-dialogs-use-header, some may be ubuntu specific though.
Comment 14 darkxst 2015-03-02 22:32:10 UTC
Created attachment 298353 [details] [review]
Use traditional titlebars in Unity

Use XDG_CURRENT_DESKTOP to determine whether to display headerbars
as a toolbar on Unity
Comment 15 Jackson Doak 2015-03-05 09:10:20 UTC
Since nearly all DEs except gnome prefer titlebars, could the XDG_CURRENT_DESKTOP setting be !gnome instead of only working on unity?
Comment 16 Stefano Facchini 2015-03-05 09:38:41 UTC
(In reply to Jackson Doak from comment #15)
> Since nearly all DEs except gnome prefer titlebars, could the
> XDG_CURRENT_DESKTOP setting be !gnome instead of only working on unity?

As you can see from the screenshot in commment 6, traditional titlebar+headerbar look quite broken, unless properly styled, so I'd rather keep it non generic and then add more exceptions... I don't know maybe this should be solved at the toolkit level
Comment 17 Jeremy Bicha 2017-09-03 13:17:49 UTC
Created attachment 359020 [details] [review]
Use traditional titlebars in Unity

Here's a rebased version of the patch that Ubuntu has been carrying.

Please review.
Comment 18 Stefano Facchini 2017-09-16 17:21:03 UTC
Attachment 359020 [details] pushed as 9247a47 - Use traditional titlebars in Unity
Comment 19 Michael Biebl 2017-09-18 00:26:41 UTC
Does this patch still make sense now that Unity has been discontinued by Canonical?