mirror of https://github.com/GNOME/gimp.git
always open a new GIMP instance when being called without any
2004-01-20 Sven Neumann <sven@gimp.org> * tools/gimp-remote.c: always open a new GIMP instance when being called without any filenames/URLs. This makes it behave better when being used from application launchers such as the GNOME panel. * docs/gimp-remote-1.3.1.in: document the new behaviour.
This commit is contained in:
parent
00a8265a22
commit
575ec2e9e2
|
@ -1,3 +1,11 @@
|
|||
2004-01-20 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* tools/gimp-remote.c: always open a new GIMP instance when being
|
||||
called without any filenames/URLs. This makes it behave better when
|
||||
being used from application launchers such as the GNOME panel.
|
||||
|
||||
* docs/gimp-remote-1.3.1.in: document the new behaviour.
|
||||
|
||||
2004-01-20 Ville Pätsi <drc@gimp.org>
|
||||
|
||||
* gimp.spec.in: Changed library extension to actually use the correct
|
||||
|
|
|
@ -9,11 +9,17 @@ gimp-remote - tells a running GIMP to open a (local or remote) image file.
|
|||
.SH DESCRIPTION
|
||||
.PP
|
||||
\fIgimp-remote\fP is a small utility that tells a running GIMP to open
|
||||
one or more (local or remote) image files. It does so by searching for
|
||||
a GIMP toolbox on the active display. If it can find a GIMP toolbox, a
|
||||
synthetic drop event is created which makes GIMP think the files would
|
||||
have been dropped onto the toolbox. More than one filename or URL can
|
||||
be specified on the commandline.
|
||||
one or more (local or remote) image files. It does so by searching
|
||||
for a GIMP toolbox on the active display. If it can find a GIMP
|
||||
toolbox, a synthetic drop event is created which makes GIMP think the
|
||||
files would have been dropped onto the toolbox. More than one filename
|
||||
or URL can be specified on the commandline.
|
||||
|
||||
.PP
|
||||
If no GIMP window is found, \fIgimp-remote\fP will start a new GIMP
|
||||
instance and ask it to load the specified images. If no filename or
|
||||
URL is given, \fIgimp-remote\fP will always start a new GIMP.
|
||||
|
||||
|
||||
.SH OPTIONS
|
||||
.l
|
||||
|
|
|
@ -9,11 +9,17 @@ gimp-remote - tells a running GIMP to open a (local or remote) image file.
|
|||
.SH DESCRIPTION
|
||||
.PP
|
||||
\fIgimp-remote\fP is a small utility that tells a running GIMP to open
|
||||
one or more (local or remote) image files. It does so by searching for
|
||||
a GIMP toolbox on the active display. If it can find a GIMP toolbox, a
|
||||
synthetic drop event is created which makes GIMP think the files would
|
||||
have been dropped onto the toolbox. More than one filename or URL can
|
||||
be specified on the commandline.
|
||||
one or more (local or remote) image files. It does so by searching
|
||||
for a GIMP toolbox on the active display. If it can find a GIMP
|
||||
toolbox, a synthetic drop event is created which makes GIMP think the
|
||||
files would have been dropped onto the toolbox. More than one filename
|
||||
or URL can be specified on the commandline.
|
||||
|
||||
.PP
|
||||
If no GIMP window is found, \fIgimp-remote\fP will start a new GIMP
|
||||
instance and ask it to load the specified images. If no filename or
|
||||
URL is given, \fIgimp-remote\fP will always start a new GIMP.
|
||||
|
||||
|
||||
.SH OPTIONS
|
||||
.l
|
||||
|
|
|
@ -341,18 +341,19 @@ main (gint argc,
|
|||
g_free (file_uri);
|
||||
}
|
||||
|
||||
/* if called without any filenames, always start a new GIMP */
|
||||
if (file_list->len == 0)
|
||||
{
|
||||
start_new_gimp (argv[0], file_list);
|
||||
}
|
||||
|
||||
/* locate Gimp window */
|
||||
|
||||
display = gdk_display_get_default ();
|
||||
|
||||
gimp_window = gimp_remote_find_window (display, gdk_screen_get_default ());
|
||||
|
||||
if (! gimp_window)
|
||||
{
|
||||
start_new_gimp (argv[0], file_list);
|
||||
|
||||
g_printerr ("No gimp window found on display %s\n", gdk_get_display ());
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if (file_list->len > 0)
|
||||
|
|
Loading…
Reference in New Issue