mirror of https://github.com/GNOME/gimp.git
Added a little wrapper when loading files from command line that loads the
Thu Apr 9 02:53:14 EST 1998 Matthew Wilson <msw@gimp.org> * app/app_procs.c: Added a little wrapper when loading files from command line that loads the files after gtk_main starts. This fixes the segfault from the tips dialog when you load images on the command line. Cudos to Owen for the fix. --Matt "owen scares me with his GTK+ knowledge" Wilson
This commit is contained in:
parent
3c3b0efab0
commit
f0d40533af
|
@ -1,3 +1,10 @@
|
|||
Thu Apr 9 02:53:14 EST 1998 Matthew Wilson <msw@gimp.org>
|
||||
|
||||
* app/app_procs.c: Added a little wrapper when loading files from
|
||||
command line that loads the files after gtk_main starts. This
|
||||
fixes the segfault from the tips dialog when you load images on
|
||||
the command line. Cudos to Owen for the fix.
|
||||
|
||||
Wed Apr 8 23:47:59 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: add AC_FUNC_ALLOCA for regex
|
||||
|
|
|
@ -103,6 +103,18 @@ static ProcRecord quit_proc =
|
|||
};
|
||||
|
||||
|
||||
/* Warning: This is a hack. This makes the files load _after_ the gtk_main
|
||||
loop starts. This means that if a file is on the command line, the
|
||||
file handling plug-in's gtk_main won't cause any dialogs that have
|
||||
set a gtk_quit_add_destroy (...) to die when the plug-in ends.
|
||||
Thanks to Owen for this.
|
||||
*/
|
||||
|
||||
GtkFunction file_open_wrapper (char *name) {
|
||||
file_open (name, name);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
gimp_init (int gimp_argc,
|
||||
char **gimp_argv)
|
||||
|
@ -115,7 +127,7 @@ gimp_init (int gimp_argc,
|
|||
while (gimp_argc--)
|
||||
{
|
||||
if (*gimp_argv)
|
||||
file_open (*gimp_argv, *gimp_argv);
|
||||
gtk_idle_add ((GtkFunction *) file_open_wrapper, *gimp_argv);
|
||||
gimp_argv++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue