mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 12:02:32 +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.
33 lines
1.2 KiB
C
33 lines
1.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_OPEN_DIALOG_H__
|
|
#define __FILE_OPEN_DIALOG_H__
|
|
|
|
|
|
void file_open_dialog_menu_init (Gimp *gimp,
|
|
GimpItemFactory *item_factory);
|
|
void file_open_dialog_menu_reset (void);
|
|
|
|
void file_open_dialog_show (Gimp *gimp,
|
|
GimpImage *gimage,
|
|
const gchar *uri);
|
|
|
|
|
|
#endif /* __FILE_OPEN_DIALOG_H__ */
|