mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
b8344d519c
2004-11-18 Michael Natterer <mitch@gimp.org> The following fixes have no visible effect because nobody uses gimp_plugin_menu_register() on temp_procs yet: * app/actions/plug-in-actions.[ch]: added plug_in_actions_add_path() which just adds the actions needed for a given menu math, but not the procedure action itself. * app/gui/gui-vtable.c (gui_menus_create_entry): create the menu_path's actions using above function so adding of submenus to existing ui managers works. * tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register_invoker): don't add a menu if "no_interface" is TRUE. * app/pdb/plug_in_cmds.c: regenerated. * plug-ins/script-fu/script-fu-scripts.c: pass untranslated menu_paths to the core, not translated ones. Don't store the scripts directly in the "script_list" tree but use a list of scripts per key because there can be identical keys for different scripts now. Fixed sorting of menu entries and menus.
37 lines
1.5 KiB
C
37 lines
1.5 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 __PLUG_IN_ACTIONS_H__
|
|
#define __PLUG_IN_ACTIONS_H__
|
|
|
|
|
|
void plug_in_actions_setup (GimpActionGroup *group);
|
|
void plug_in_actions_update (GimpActionGroup *group,
|
|
gpointer data);
|
|
|
|
void plug_in_actions_add_proc (GimpActionGroup *group,
|
|
PlugInProcDef *proc_def);
|
|
void plug_in_actions_add_path (GimpActionGroup *group,
|
|
PlugInProcDef *proc_def,
|
|
const gchar *menu_path);
|
|
void plug_in_actions_remove_proc (GimpActionGroup *group,
|
|
PlugInProcDef *proc_def);
|
|
|
|
|
|
#endif /* __PLUG_IN_ACTIONS_H__ */
|