]> git.pld-linux.org Git - packages/xsane.git/commitdiff
- updated gimp1.3 patch to work with 1.3.15
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 19 Jun 2003 15:38:21 +0000 (15:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xsane-gimp1.3.patch -> 1.2
    xsane.spec -> 1.41

xsane-gimp1.3.patch

index 5540723c835f211e2691868dcfe0fb9d0dbc31e4..be87ca077d8565c800a9cef9b881f5e6757b03ca 100644 (file)
  
    /* before we open any windows we have to read the style file */
    xsane_back_gtk_make_path(sizeof(filename), filename, "xsane", 0, "xsane-style", 0, ".rc", XSANE_PATH_LOCAL_SANE);
+@@ -8077,6 +8077,9 @@
+     old_print_func    = g_set_print_handler((GPrintFunc) null_print_func);
+     old_printerr_func = g_set_printerr_handler((GPrintFunc) null_print_func);
++#if GIMP_CHECK_VERSION(1,3,15)
++    result = gimp_main(&PLUG_IN_INFO, argc, argv);
++#else
+ #ifdef _WIN32 
+     /* don`t know why, but win32 does need this */
+     set_gimp_PLUG_IN_INFO_PTR(&PLUG_IN_INFO);
+@@ -8088,6 +8091,7 @@
+ #endif
+     /* gimp_main() returns 1 if xsane wasn't invoked by GIMP */
+     result = gimp_main(argc, argv);
++#endif
+ #if 0
+     /* this is the old version that seems to use the compatibility functions */
 --- xsane-0.90/src/xsane.h.orig        2002-12-14 12:53:46.000000000 +0100
 +++ xsane-0.90/src/xsane.h     2003-05-11 21:07:08.000000000 +0200
 @@ -290,7 +290,8 @@
This page took 0.053387 seconds and 4 git commands to generate.