[enable_iliad=no])
AM_CONDITIONAL(TARGET_ILIAD, $TEST "x$enable_iliad" = xyes)
-### BUILD WITHOUT RECENT FILES MANAGER #########################################
-# (to work around a bug on OS X)
-AC_ARG_ENABLE([recent],
- [AS_HELP_STRING([--disable-recent],
- [Omit recent files menu (to work around a bug on OS X])],
- [],
- [enable_recent=yes])
-AS_IF([$TEST "x$enable_recent" = "xyes"],
- [OPEN_RECENT_MENU_ITEM="<menuitem action=\"recent\"/>"],
- [OPEN_RECENT_MENU_ITEM="<!-- <menuitem action=\"recent\"/>-->"])
-AC_SUBST(OPEN_RECENT_MENU_ITEM)
-
### RPM CONFIGURATION ##########################################################
# --enable-rpm requires rpm and rpmbuild
AC_PATH_PROG([RPMBUILD], [rpmbuild], [notfound])
interpreters/git/Makefile
tests/Makefile
player/Makefile
-player/chimara.menus
docs/Makefile
docs/reference/Makefile
docs/reference/version.xml
else
-dist_pkgdata_DATA = chimara.ui chimara.menus style.css
+dist_pkgdata_DATA = chimara.ui browser.menus player.menus style.css
bin_PROGRAMS = chimara
chimara_SOURCES = main.c \
NULL);
GtkUIManager *uimanager = gtk_ui_manager_new();
- if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_DATA_DIR "/chimara.menus", &error) ) {
+ if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_DATA_DIR "/browser.menus", &error) ) {
#ifdef DEBUG
g_error_free(error);
error = NULL;
- if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_SRC_DIR "/chimara.menus", &error) ) {
+ if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_SRC_DIR "/browser.menus", &error) ) {
#endif /* DEBUG */
error_dialog(NULL, error, "Error while building interface: ");
return;
--- /dev/null
+<?xml version="1.0"?>
+<ui>
+ <menubar name="browser_menu">
+ <menu action="game">
+ <menuitem action="open"/>
+ <menuitem action="recent"/>
+ <separator/>
+ <menuitem action="quit_chimara"/>
+ </menu>
+ <menu action="edit">
+ <menuitem action="preferences"/>
+ </menu>
+ <menu action="help">
+ <menuitem action="about"/>
+ </menu>
+ </menubar>
+</ui>
+++ /dev/null
-<?xml version="1.0"?>
-<ui>
- <menubar name="browser_menu">
- <menu action="game">
- <menuitem action="open"/>
- @OPEN_RECENT_MENU_ITEM@
- <separator/>
- <menuitem action="quit_chimara"/>
- </menu>
- <menu action="edit">
- <menuitem action="preferences"/>
- </menu>
- <menu action="help">
- <menuitem action="about"/>
- </menu>
- </menubar>
- <menubar name="player_menu">
- <menu action="game">
- <menuitem action="stop"/>
- </menu>
- <menu action="edit">
- <menuitem action="copy"/>
- <menuitem action="paste"/>
- <separator/>
- <menuitem action="preferences"/>
- </menu>
- <menu action="view">
- <menuitem action="toolbar"/>
- </menu>
- <menu action="command">
- <menuitem action="undo"/>
- <menuitem action="save"/>
- <menuitem action="restore"/>
- <menuitem action="restart"/>
- <menuitem action="quit"/>
- </menu>
- <menu action="help">
- <menuitem action="about"/>
- </menu>
- </menubar>
- <toolbar name="player_toolbar">
- <toolitem action="open"/>
- <separator/>
- <toolitem action="restore"/>
- <toolitem action="save"/>
- </toolbar>
-</ui>
//g_settings_bind(state_settings, "show-toolbar-default", toolbar_action, "active", G_SETTINGS_BIND_SET);
GtkUIManager *uimanager = gtk_ui_manager_new();
- if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_DATA_DIR "/chimara.menus", &error) ) {
+ if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_DATA_DIR "/player.menus", &error) ) {
#ifdef DEBUG
g_error_free(error);
error = NULL;
- if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_SRC_DIR "/chimara.menus", &error) ) {
+ if( !gtk_ui_manager_add_ui_from_file(uimanager, PACKAGE_SRC_DIR "/player.menus", &error) ) {
#endif /* DEBUG */
error_dialog(NULL, error, "Error while building interface: ");
return;
--- /dev/null
+<?xml version="1.0"?>
+<ui>
+ <menubar name="player_menu">
+ <menu action="game">
+ <menuitem action="stop"/>
+ </menu>
+ <menu action="edit">
+ <menuitem action="copy"/>
+ <menuitem action="paste"/>
+ <separator/>
+ <menuitem action="preferences"/>
+ </menu>
+ <menu action="view">
+ <menuitem action="toolbar"/>
+ </menu>
+ <menu action="command">
+ <menuitem action="undo"/>
+ <menuitem action="save"/>
+ <menuitem action="restore"/>
+ <menuitem action="restart"/>
+ <menuitem action="quit"/>
+ </menu>
+ <menu action="help">
+ <menuitem action="about"/>
+ </menu>
+ </menubar>
+ <toolbar name="player_toolbar">
+ <toolitem action="open"/>
+ <separator/>
+ <toolitem action="restore"/>
+ <toolitem action="save"/>
+ </toolbar>
+</ui>