mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 04:51:44 +00:00
527aa849cb
2004-02-27 Michael Natterer <mitch@gimp.org> * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpfiledialog.[ch]: new widget swallowing most of file-dialog-utils.[ch]'s functionality. * app/widgets/widgets-types.h: added "gpointer callback_data" to GimpItemFactorySetupFunc so the setup_funcs can create items in the same context as the item factory's default items. * app/widgets/gimpmenufactory.c (gimp_menu_factory_menu_new): pass "callback_data" to setup_func(). * app/gui/file-open-menu.[ch] * app/gui/file-save-menu.[ch]: use the passed callback_data when creating the menus and attach the file_proc to the menu items using g_object_set_data(). * app/gui/file-commands.[ch]: merged separate file type callbacks for open and save dialogs into one callback which simply calls gimp_file_dialog_set_file_proc(). * app/gui/file-dialog-utils.[ch]: removed file_dialog_new() and file_dialog_set_proc(). * app/gui/file-open-dialog.[ch] * app/gui/file-save-dialog.[ch]: use the new widget and removed global variables except the dialog pointer itself. * app/gui/image-menu.[ch] * app/gui/tool-options-menu.[ch] * app/gui/toolbox-menu.[ch]: changed accordingly.
70 lines
3.2 KiB
C
70 lines
3.2 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 __FILE_COMMANDS_H__
|
|
#define __FILE_COMMANDS_H__
|
|
|
|
|
|
void file_new_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_type_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_open_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_last_opened_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_save_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_save_as_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_save_a_copy_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_save_template_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_revert_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_pref_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_close_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
void file_quit_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_file_open_dialog (Gimp *gimp,
|
|
const gchar *uri,
|
|
GtkWidget *parent);
|
|
|
|
|
|
#endif /* __FILE_COMMANDS_H__ */
|