Re: [gnome-flashback] Appmenu button in the window title





On Mon, Apr 27, 2015 at 10:03 PM, Dmitry Shachnev <mitya57 ubuntu com> wrote:
On Mon, 27 Apr 2015 21:44:12 +0300, Alberts Muktupāvels wrote:
> With XSettings override everything works, right?

Using a whole menu bar just to show *one* menu is ugly from all sides
(that's what happens when we set the XSettings override).

Which applications does this? I know only dconf-editor.

We can not do much about this, we have to options:
1) menus are exported for shell. we don't see menu bar and it is not possible to use menu button in csd window. it will not be shown even button is added to button/decoration layout.
2) menus are not exported for shell. apps will show menubar, csd window can shows this menu under menu button.

There is also Gtk/ShellShowsMenubar, but I don't know what it does...

> Now you want it to work without XSettings, right? It will not work...
>
> All applications export menus to be shown in gnome-shell. We get them in
> gnome-flashback and forward to metacity? First is menus really forwarded to
> gnome-shell via dbus? I think that no, but it not problem. So we have menus
> in metacity and here is main problem. These days we have two type
> applications - server side and client side decorated. With metacity we can
> show menu only in server side decoration, but what about csd windows? This
> forces to use XSettings override - so no need to do anything about appmenu
> in metacity.

Oh, indeed, I forgot about it.

But do you know if Gtk+ can insert a menu button into the CSD?

Like this?:
https://www.dropbox.com/s/orlpj03pkjuw6ef/Screenshot%20from%202015-04-27%2022-16-58.png?dl=0

And it is same menu that is shown in gnome-shell panel, right?

I am using:
button-layout = 'appmenu:minimize,maximize,close'
overrides = '{"Gtk/ShellShowsAppMenu":<0>}'

appmenu in button-layout == menu in Gtk/DecorationLayout:
"Gtk/DecorationLayout":<"menu:minimize,maximize,close">

so you could use:
button-layout = ':minimize,maximize,close'
overrides = '{"Gtk/DecorationLayout":<"menu:minimize,maximize,close">, "Gtk/ShellShowsAppMenu":<0>}'
if you want different layouts between ssd and csd windows.

to get needed data for appmenu in metacity. but I don't see any need. What point of having button with same content that will be in menubar?

Check mutter in GNOME Shell with "Gtk/ShellShowsAppMenu":<0>. Button with missing-image, that shows same menu that is under dconf Editor menubar. This wont make and difference in how good or ugly application looks.

I guess that requires bigger changes - for example mutter and metacity should somehow (adding that atom to _NET_SUPPORTED?) tell that we support appmenu in decoration and apps should not add useless menu bar. This would require some work in mutter, metacity and gtk+. Since they have not done that for mutter I am not interested in writing patches that most likely will not be accepted. I have tried twice - org.gnome.Shell bug, per session overrides bug. Seems that they are not interested in anything that is unrelated to GNOME. :(

I think I have seen that in past, but don't remember if it was my system
or just a screenshot.

--
Dmitry Shachnev
_______________________________________________
gnome-flashback-list mailing list
gnome-flashback-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-flashback-list




--
Alberts Muktupāvels


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]