Issue 577 has been merged into this issue.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
I've started a Firefox extension that walks the Firefox XUL menu from
Javascript and creates the Globalmenu XML from it:
http://gitorious.org/firefox-gnome-globalmenu/firefox-gnome-globalmenu .
Note that it's mostly a prototype. For example,
a) The menus eventually desync (deactivating then activating the Firefox
window fixes it as updating the menus on "focus in" event is hardcoded).
Most noticeable cut/copy/paste sensitiveness. This can be fixed, just
requires more through understanding of XUL command element.
b) Some menus do not work at all (Bookmarks, Encoding, Help) because
Firefox expects me to call menu_shown/menu_hidden event handlers. I've
implemented that only for the History menu.
c) There's a racy condition where the extension will overwrite some other
window's global menu (including other application's ones). Didn't happen to
me though. I need a better way to get the Firefox window XID.
d) Only gtk stock icons used.
e) Sometimes it breaks Alt+mnemonics and F10 on a _global_ level. Seems I'm
triggering a globalmenu applet bug, but I'm yet to consistently reproduce
it. Accelerators do work :).
The extension has some native code which has to be built (so you need gecko
sdk, etc.). Check src/Makefile . The native code handles X11 stuff; most of
the logic (including XML generating one) is implemented in JavaScript.
Thank you for the good work! I'm going to check it out this weekend if
possible.
b) is similiar to java swt, where one needs to invoke some other signals to
rebuild the menu.
d) that's already good enough. none stock icons are serialized with gtk
convensions encoded in base64, then embbed in the xml; a complicated and
slow process.
e) It sounds like a bug fixed in the git head but not in the current
released version.
I've already fixed most of the glaring issues
a) Cut/Copy/Paste/Stop/Refresh sensitiveness now stays in sync.
b) Bookmarks menu works now.
c) Get the Window XID the "proper" way.
d) Render & base64_encode the icons that do not come from stock Gtk+.
There's currently a per-window cache of base64'd icons that should be
extended to per-process, ideally.
e) That was Issue 500.
As the current approach rebuilds the entire menu every time there's an
event that "could" change some item's contents/sensitivity, performance is
an issue (specially with lots of bookmarks & favicons); as a workaround it
batches events for 500ms then updates if required.
This might also interest the Ubuntu effort for application menus.
the firefox globalmenu plugin works very well, thanks javispedro!
Now i am using firefox instead of opera..
How can I exactly install this firefox fix?
And why must I create the globalmenu.xpi file?
Can somebody upload his or her file, because I can't create this file with
the terminal. The terminal says: "make: *** src: No such file or
directory. End."
And nothing happens. What can I do?
Thanks in advance!
jason52lh: I think I fixed that in latest Git.
How about making a binary .deb file (and maybe a launchpad ppa), so that us
non-programmers can install this on our systems.
yeah i second the idea to provide a test xpi file.. i have all the gtk
development files and xulrunner-dev and xulrunner-dev-1.9.2 (something like)
but it won't build it
Because of the binary components, any binary distribution should have your
distro in mind. Arch is already packaging it AFAIK.
(I guess I should get a proper project home for this, Gitorious is not
enough...).
Hi, javispedro, there is another little problem:
some icons in firefox globale menu will be larger then normal. but in
firefox menu it's alright.
Attachments:
menu.jpg 46.6 KB
javispedro,
So you are aware I would just like to add that your extension doesn't
currently work in Firefox 4 beta6.
Hope soon add firefox 4.0 support.
In case you are still using this....
Since Gentoo pushed Firefox 9 to 'stable', I've finally been forced to
update my extension to work with newer Firefoxes. I have also fixed some
issues and made the extension hide the menu bar on its own, so there is no
longer need to install "Hide menu bar" or similar extensions for that.
As an added bonus, it should now install under Thunderbird. Albeit it
doesn't work very well there.
Please read the INSTALL file because building is slightly harder than
previous versions. Also, the install.rdf limits the extension to
Firefox/Thunderbird 9 only, but I don't see any reason it should not work
on 10, so if you are feeling adventurous, change the rdf and try it.