
2004-04-26 Michael Natterer <mitch@gimp.org> * app/widgets/widgets-types.h: added GimpUIManagerSetupFunc typedef. * app/widgets/gimpuimanager.[ch]: added the setup_func to the GimpUIManagerUIEntry struct and to gimp_ui_manager_ui_register(). Call the setup_func after creating the UI. Replaced the term "identifier" by "ui_path". * app/widgets/gimpmenufactory.c: ditto. * app/gui/menus.c (menus_init): register the new setup_funcs below. * app/gui/menus.[ch] (menus_open_recent_add) * app/gui/image-menu.[ch] (image_menu_setup2) * app/gui/toolbox-menu.[ch] (toolbox_menu_setup2): new setup_funcs which add the "Open Recent" menu items. * app/actions/file-actions.c: removed "file-open-recent-empty" action because it's not needed. * menus/image-menu.xml * menus/toolbox-menu.xml: removed "file-open-recent-empty" menu items and added <placeholder>s for the "Open Recent" menu items.
47 lines
1.7 KiB
C
47 lines
1.7 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __MENUS_H__
|
|
#define __MENUS_H__
|
|
|
|
|
|
#define MENU_SEPARATOR(path) \
|
|
{ { (path), NULL, NULL, 0, "<Separator>" }, NULL, NULL, NULL }
|
|
|
|
#define MENU_BRANCH(path) \
|
|
{ { (path), NULL, NULL, 0, "<Branch>" }, NULL, NULL, NULL }
|
|
|
|
|
|
extern GimpMenuFactory *global_menu_factory;
|
|
|
|
|
|
void menus_init (Gimp *gimp);
|
|
void menus_exit (Gimp *gimp);
|
|
void menus_restore (Gimp *gimp);
|
|
void menus_save (Gimp *gimp);
|
|
void menus_clear (Gimp *gimp);
|
|
|
|
void menus_open_recent_add (GimpUIManager *manager,
|
|
const gchar *ui_path);
|
|
|
|
void menus_last_opened_add (GimpItemFactory *item_factory);
|
|
void menus_filters_subdirs_to_top (GtkMenu *menu);
|
|
|
|
|
|
#endif /* __MENUS_H__ */
|