Grett12 / gnome2-globalmenu

Automatically exported from code.google.com/p/gnome2-globalmenu
0 stars 0 forks source link

Make GlobalMenu compatible with Wine Apps #409

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Launch the Notepad Example App in Wine
2. Notice that the menus are still in the window and not GTK-themed

The normal behavious would be to have apps that are GTK skinned and
transformed, thus compatible with GlobalMenu.
We have to investigate if any solution has been already created to this
end, and provide a simple way for the user to install it.

Original issue reported on code.google.com by pierre.s...@gmail.com on 24 Apr 2009 at 1:19

GoogleCodeExporter commented 8 years ago
That is horriblly difficult. We need to replace the implementation on those menu
related windows APIs. A customized wine is needed, or at least some DLLs need 
to be
replaced, which can be done at a per user bases. 

And How can a wine application learn about the underlining X server? It would 
be a
very challenging topic.

Original comment by rainwood...@gmail.com on 24 Apr 2009 at 1:35

GoogleCodeExporter commented 8 years ago
The way to do this would to by checking if something like this is possible on
Windows, check how it is done and try to create an equivalent for Wine that 
transmits
data to and from the global-menu

Original comment by hansrodt...@gmail.com on 25 Apr 2009 at 2:29

GoogleCodeExporter commented 8 years ago
you'll find a bunch of mac-alike menubars on the relevant pages.
make no mistake they (notably "tigerbar") are /all/ fakes (i.e. provide some 
def.
actions and systray icons, but are not connected to app menus)

the functionality is afair somewhere in user32.dll and shell32.dll.
it /should/ be possible to export the necessary info.
it /should/ be possible to monitor and handle events
it /should/ be possible to synth. open popups (reg. a v2 protocol)
the major proble however will occur on hiding the apps menubar.
mfc apps carry and (casewise) assume a static layout, i.e. just hiding an 
element can
easily make the app crash.

given the heck of a job it seems to get a random mfc app running under x11 at 
all, i
doubt the wine devs will be very happy to include another troublemaker...

also take the relevance into account. no one runs the notepad demo (there're a 
zillion
better texteditors on linux/x11). personally i mostly use wine to run some game.
if i ever really /have/ to run some windows app, i'll do and shut it down asap 
;-)
it however doesn't make the majority of my desktop (i could run windows then, 
the
kernel is pretty ok...)

Original comment by thomas.l...@gmail.com on 25 Apr 2009 at 3:51

GoogleCodeExporter commented 8 years ago

Original comment by pierre.s...@gmail.com on 1 May 2010 at 9:14

GoogleCodeExporter commented 8 years ago
There is one exception to the fake menus on Win32--Stardock's ObjectBar, with 
the right theme, is capable of stealing an application's menu (though the local 
menu will still be displayed, and it doesn't work with things like firefox and 
GTK-on-win32)

Original comment by erikas.aubade@gmail.com on 31 Oct 2010 at 12:46