mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 20:12:30 +00:00
94f8431fdd
2002-11-01 Michael Natterer <mitch@gimp.org> * app/gui/file-open-dialog.[ch]: added "gimage" and "uri" parameters to file_open_dialog_show(). If an image is passed, go to that image's directory, for an uri, preselect the file. Fixes bug #96779. * app/gui/menus.c: pass "action" to file_open_cmd_callback() so we can distinguish if it was invoked from the toolbox or an image. * app/gui/file-commands.[ch]: if invoked from an image, pass it to file_open_dialog_show(). * app/widgets/gimpdocumentview.c: pass the selected document's uri to file_open_dialog_show(). * app/gui/file-save-dialog.c: use gimp_image_get_filename() instead of fiddling with the image's uri manually.
65 lines
2.3 KiB
C
65 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 __FILE_COMMANDS_H__
|
|
#define __FILE_COMMANDS_H__
|
|
|
|
|
|
void file_new_cmd_callback (GtkWidget *widget,
|
|
gpointer data,
|
|
guint action);
|
|
|
|
void file_open_by_extension_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_by_extension_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_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);
|
|
|
|
|
|
#endif /* __FILE_COMMANDS_H__ */
|