mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
preselect the image just as in file_open_from_image_cmd_callback().
2005-02-24 Sven Neumann <sven@gimp.org> * app/actions/file-commands.c (file_open_as_layer_cmd_callback): preselect the image just as in file_open_from_image_cmd_callback().
This commit is contained in:
parent
03182eba8d
commit
9c1c0081b4
2 changed files with 11 additions and 1 deletions
|
@ -113,10 +113,15 @@ file_open_as_layer_cmd_callback (GtkAction *action,
|
|||
{
|
||||
GimpDisplay *gdisp;
|
||||
GtkWidget *widget;
|
||||
GimpImage *image;
|
||||
const gchar *uri;
|
||||
return_if_no_display (gdisp, data);
|
||||
return_if_no_widget (widget, data);
|
||||
|
||||
file_open_dialog_show (widget, gdisp->gimage, NULL, TRUE);
|
||||
image = gdisp->gimage;
|
||||
uri = gimp_object_get_name (GIMP_OBJECT (image));
|
||||
|
||||
file_open_dialog_show (widget, image, uri, TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue