2016-09-22 12:48:04 +02:00
|
|
|
---
|
2018-09-06 15:41:32 +02:00
|
|
|
src/main.c | 18 ++++++++++++------
|
2016-09-22 12:48:04 +02:00
|
|
|
src/u_print.c | 1 +
|
2018-09-06 15:41:32 +02:00
|
|
|
2 files changed, 13 insertions(+), 6 deletions(-)
|
2016-09-22 12:48:04 +02:00
|
|
|
|
Accepting request 870850 from home:dirkmueller:branches:graphics
- update to 3.2.8:
o Shift + Wheel Up pans left, Shift + Wheel Down pans right.
Alt or Meta + Wheel Up pops up the edit panel, Alt or Meta + Wheel
Down pops up the drawing panel. Previously, Shift + Wheel Up or Down
popped up the edit or drawing panel, respectively, and panning
sideways could only be achieved by moving the wheel sideways.
o To display gif image files, either giftopnm and ppmtopcx from the
netpbm package, imagemagick, or graphicsmagick must be installed.
o Obey the resolution given in embedded png, tiff and jpeg image files.
o Embedded image files are displayed in full color, not reduced to
a maximum of 256 colors.
o Display embedded pdf files.
o Read version 1.3 fig files.
o The default resolution of embedded raster images is changed
from 80 dpi to 72 dpi.
o Read compressed files, but do not silently uncompress them.
o Get correct bounding box (/MediaBox) of embedded pdf files.
- remove xfig.3.2.5b-preview.dif, xfig.3.2.5b-pspdftex.dif,
xfig.3.2.5-xim.dif: obsolete
- remove X11R6 ifdefs from spec file, this is obsolete
OBS-URL: https://build.opensuse.org/request/show/870850
OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=72
2021-02-11 09:49:35 +01:00
|
|
|
Index: src/main.c
|
|
|
|
===================================================================
|
|
|
|
--- src/main.c.orig
|
|
|
|
+++ src/main.c
|
|
|
|
@@ -44,6 +44,8 @@
|
|
|
|
#include <X11/xpm.h>
|
2007-07-27 02:14:11 +02:00
|
|
|
#ifdef I18N
|
|
|
|
#include <X11/keysym.h>
|
|
|
|
+#include <locale.h>
|
|
|
|
+#include <langinfo.h>
|
Accepting request 870850 from home:dirkmueller:branches:graphics
- update to 3.2.8:
o Shift + Wheel Up pans left, Shift + Wheel Down pans right.
Alt or Meta + Wheel Up pops up the edit panel, Alt or Meta + Wheel
Down pops up the drawing panel. Previously, Shift + Wheel Up or Down
popped up the edit or drawing panel, respectively, and panning
sideways could only be achieved by moving the wheel sideways.
o To display gif image files, either giftopnm and ppmtopcx from the
netpbm package, imagemagick, or graphicsmagick must be installed.
o Obey the resolution given in embedded png, tiff and jpeg image files.
o Embedded image files are displayed in full color, not reduced to
a maximum of 256 colors.
o Display embedded pdf files.
o Read version 1.3 fig files.
o The default resolution of embedded raster images is changed
from 80 dpi to 72 dpi.
o Read compressed files, but do not silently uncompress them.
o Get correct bounding box (/MediaBox) of embedded pdf files.
- remove xfig.3.2.5b-preview.dif, xfig.3.2.5b-pspdftex.dif,
xfig.3.2.5-xim.dif: obsolete
- remove X11R6 ifdefs from spec file, this is obsolete
OBS-URL: https://build.opensuse.org/request/show/870850
OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=72
2021-02-11 09:49:35 +01:00
|
|
|
#endif
|
|
|
|
#ifdef USE_TAB /* input extensions for an input tablet */
|
|
|
|
#include <X11/extensions/XInput.h>
|
2021-04-01 13:49:07 +02:00
|
|
|
@@ -818,11 +820,6 @@ main(int argc, char **argv)
|
2007-07-27 02:14:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-#ifdef I18N
|
|
|
|
- setlocale(LC_ALL, "");
|
|
|
|
- XtSetLanguageProc(NULL, NULL, NULL);
|
|
|
|
-#endif /* I18N */
|
|
|
|
-
|
|
|
|
/*
|
|
|
|
* save the command line arguments
|
|
|
|
*/
|
2021-04-01 13:49:07 +02:00
|
|
|
@@ -924,6 +921,10 @@ main(int argc, char **argv)
|
2013-12-10 15:25:41 +01:00
|
|
|
setup_icons_big();
|
2007-07-27 02:14:11 +02:00
|
|
|
|
|
|
|
#ifdef I18N
|
|
|
|
+ if (NULL == strcasestr(nl_langinfo(CODESET),"ANSI") &&
|
2018-09-06 13:48:47 +02:00
|
|
|
+ NULL == strcasestr(nl_langinfo(CODESET),"ISO-8859-"))
|
2007-07-27 02:14:11 +02:00
|
|
|
+ appres.international = True;
|
|
|
|
+
|
|
|
|
/************************************************************/
|
|
|
|
/* if the international option has been set, set the locale */
|
|
|
|
/************************************************************/
|
2021-04-01 13:49:07 +02:00
|
|
|
@@ -1644,6 +1645,11 @@ setup_visual(int *argc_p, char **argv, A
|
2007-07-27 02:14:11 +02:00
|
|
|
*/
|
|
|
|
tool = XtAppInitialize (&tool_app, "Fig", options, XtNumber (options), argc_p, argv,
|
|
|
|
(String *) NULL, args, 0);
|
|
|
|
+#ifdef I18N
|
|
|
|
+ setlocale(LC_ALL, "");
|
|
|
|
+ setlocale(LC_NUMERIC, "C");
|
|
|
|
+ XtSetLanguageProc(tool_app, NULL, NULL);
|
|
|
|
+#endif /* I18N */
|
|
|
|
/* save important info */
|
|
|
|
tool_d = XtDisplay(tool);
|
|
|
|
tool_s = XtScreen(tool);
|
Accepting request 870850 from home:dirkmueller:branches:graphics
- update to 3.2.8:
o Shift + Wheel Up pans left, Shift + Wheel Down pans right.
Alt or Meta + Wheel Up pops up the edit panel, Alt or Meta + Wheel
Down pops up the drawing panel. Previously, Shift + Wheel Up or Down
popped up the edit or drawing panel, respectively, and panning
sideways could only be achieved by moving the wheel sideways.
o To display gif image files, either giftopnm and ppmtopcx from the
netpbm package, imagemagick, or graphicsmagick must be installed.
o Obey the resolution given in embedded png, tiff and jpeg image files.
o Embedded image files are displayed in full color, not reduced to
a maximum of 256 colors.
o Display embedded pdf files.
o Read version 1.3 fig files.
o The default resolution of embedded raster images is changed
from 80 dpi to 72 dpi.
o Read compressed files, but do not silently uncompress them.
o Get correct bounding box (/MediaBox) of embedded pdf files.
- remove xfig.3.2.5b-preview.dif, xfig.3.2.5b-pspdftex.dif,
xfig.3.2.5-xim.dif: obsolete
- remove X11R6 ifdefs from spec file, this is obsolete
OBS-URL: https://build.opensuse.org/request/show/870850
OBS-URL: https://build.opensuse.org/package/show/graphics/xfig?expand=0&rev=72
2021-02-11 09:49:35 +01:00
|
|
|
Index: src/u_print.c
|
|
|
|
===================================================================
|
|
|
|
--- src/u_print.c.orig
|
|
|
|
+++ src/u_print.c
|
2018-05-07 09:56:07 +02:00
|
|
|
@@ -16,6 +16,7 @@
|
2007-07-27 02:14:11 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#include <locale.h>
|
|
|
|
#include "fig.h"
|
|
|
|
#include "resources.h"
|
|
|
|
#include "object.h"
|