33b8b3241f
- 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
66 lines
1.7 KiB
Plaintext
66 lines
1.7 KiB
Plaintext
---
|
|
src/main.c | 18 ++++++++++++------
|
|
src/u_print.c | 1 +
|
|
2 files changed, 13 insertions(+), 6 deletions(-)
|
|
|
|
Index: src/main.c
|
|
===================================================================
|
|
--- src/main.c.orig
|
|
+++ src/main.c
|
|
@@ -44,6 +44,8 @@
|
|
#include <X11/xpm.h>
|
|
#ifdef I18N
|
|
#include <X11/keysym.h>
|
|
+#include <locale.h>
|
|
+#include <langinfo.h>
|
|
#endif
|
|
#ifdef USE_TAB /* input extensions for an input tablet */
|
|
#include <X11/extensions/XInput.h>
|
|
@@ -831,11 +833,6 @@ main(int argc, char **argv)
|
|
}
|
|
}
|
|
|
|
-#ifdef I18N
|
|
- setlocale(LC_ALL, "");
|
|
- XtSetLanguageProc(NULL, NULL, NULL);
|
|
-#endif /* I18N */
|
|
-
|
|
/*
|
|
* save the command line arguments
|
|
*/
|
|
@@ -937,6 +934,10 @@ main(int argc, char **argv)
|
|
setup_icons_big();
|
|
|
|
#ifdef I18N
|
|
+ if (NULL == strcasestr(nl_langinfo(CODESET),"ANSI") &&
|
|
+ NULL == strcasestr(nl_langinfo(CODESET),"ISO-8859-"))
|
|
+ appres.international = True;
|
|
+
|
|
/************************************************************/
|
|
/* if the international option has been set, set the locale */
|
|
/************************************************************/
|
|
@@ -1657,6 +1658,11 @@ setup_visual(int *argc_p, char **argv, A
|
|
*/
|
|
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);
|
|
Index: src/u_print.c
|
|
===================================================================
|
|
--- src/u_print.c.orig
|
|
+++ src/u_print.c
|
|
@@ -16,6 +16,7 @@
|
|
*
|
|
*/
|
|
|
|
+#include <locale.h>
|
|
#include "fig.h"
|
|
#include "resources.h"
|
|
#include "object.h"
|