mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
36c83350a2
2003-09-30 Michael Natterer <mitch@gimp.org> * app/gui/tool-options-menu.c: added a "Rename Saved Options" submenu and factored on-the-fly submenu creation out to a utility function. * app/gui/tool-options-commands.[ch]: added rename callback. * app/widgets/gimphelp-ids.h: added GIMP_HELP_TOOL_OPTIONS_RENAME. * app/widgets/gimptooloptionseditor.c (gimp_tool_options_editor_menu_popup): pass "button = 0" to gtk_menu_popup() because we show the menu on button_release, not on button_press.
47 lines
2.3 KiB
C
47 lines
2.3 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 __TOOL_OPTIONS_COMMANDS_H__
|
|
#define __TOOL_OPTIONS_COMMANDS_H__
|
|
|
|
|
|
void tool_options_save_to_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void tool_options_save_new_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void tool_options_restore_from_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void tool_options_rename_saved_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void tool_options_delete_saved_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void tool_options_reset_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void tool_options_reset_all_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
|
|
#endif /* __TOOL_OPTIONS_COMMANDS_H__ */
|