Hi!

this patch adds Gnome/Gtk menu to LyX. Since menu is a part of Gnome
application main window, a small main window class (GLyxAppWin) is added
too. Eventually, when LyXView will be ported to Gnome or LyX main window
will be GUI independent, GLyxAppWin will be replaced. Thus, when compiled
with gnome frontend support, LyX has two windows: LyXView (without
menubar) and new GLyxAppWin (with menubar).

The following two problems occured:

Manubar::update : Since Gnome menu may be easily used as toolbar by
"tearing off" the menu, I had to update constantly state of the widgets as
it is done for Toolbar. This means that after each keypress by user LyX
has to check state of all the actions presented in the menu. Is there any
way to register a callback function which is called when the
corresponding action state has changed? Will it be more effective than
walking through vector with actions and asking the state of each action?

Shortcuts: Gnome applications have common shortcuts, such as F3 for Open
File, for example. Which shortcuts should be default for LyX --- as it is
now or common Gnome ones?

Marko

gnome-menus.gz

gnome-menu-new-files.tar.gz

Reply via email to