gimp r27755 - in trunk: . plug-ins/common
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27755 - in trunk: . plug-ins/common
- Date: Wed, 3 Dec 2008 16:07:32 +0000 (UTC)
Author: neo
Date: Wed Dec 3 16:07:32 2008
New Revision: 27755
URL: http://svn.gnome.org/viewvc/gimp?rev=27755&view=rev
Log:
2008-12-03 Sven Neumann <sven gimp org>
* plug-ins/common/file-ps.c: minor cleanup.
Modified:
trunk/ChangeLog
trunk/plug-ins/common/file-ps.c
Modified: trunk/plug-ins/common/file-ps.c
==============================================================================
--- trunk/plug-ins/common/file-ps.c (original)
+++ trunk/plug-ins/common/file-ps.c Wed Dec 3 16:07:32 2008
@@ -68,8 +68,6 @@
* or g_spawn_sync().
* V 1.17 PK, 19-Sep-2004: Fix problem with interpretation of bounding box
*/
-#define VERSIO 1.17
-static char dversio[] = "v1.17 19-Sep-2004";
#include "config.h"
@@ -106,6 +104,8 @@
#endif
#endif
+#define VERSIO 1.17
+static const gchar dversio[] = "v1.17 19-Sep-2004";
#define LOAD_PS_PROC "file-ps-load"
#define LOAD_EPS_PROC "file-eps-load"
@@ -154,8 +154,8 @@
* be loaded, so that they can be updated when desired resolution is
* changed
*/
-GtkWidget *ps_width_spinbutton;
-GtkWidget *ps_height_spinbutton;
+static GtkWidget *ps_width_spinbutton;
+static GtkWidget *ps_height_spinbutton;
/* Save info */
typedef struct
@@ -184,6 +184,8 @@
256 /* Preview size */
};
+static const char hex[] = "0123456789abcdef";
+
/* Declare some local functions.
*/
@@ -2518,7 +2520,6 @@
GimpPixelRgn pixel_rgn;
GimpDrawable *drawable;
GimpImageType drawable_type;
- static char *hex = "0123456789abcdef";
int level2 = (psvals.level > 1);
drawable = gimp_drawable_get (drawable_ID);
@@ -2622,7 +2623,6 @@
GimpPixelRgn pixel_rgn;
GimpDrawable *drawable;
GimpImageType drawable_type;
- static char *hex = "0123456789abcdef";
gint level2 = (psvals.level > 1);
cmap = gimp_image_get_colormap (image_ID, &ncols);
@@ -2754,8 +2754,6 @@
GimpPixelRgn pixel_rgn;
GimpDrawable *drawable;
GimpImageType drawable_type;
- static char *hex = "0123456789abcdef";
- static char *background = "000000";
int level2 = (psvals.level > 1);
cmap = cmap_start = gimp_image_get_colormap (image_ID, &ncols);
@@ -2766,7 +2764,7 @@
{
if (j >= ncols)
{
- memcpy (ct, background, 6);
+ memset (ct, 0, 6);
ct += 6;
}
else
@@ -2903,7 +2901,6 @@
GimpPixelRgn pixel_rgn;
GimpDrawable *drawable;
GimpImageType drawable_type;
- static char *hex = "0123456789abcdef";
int level2 = (psvals.level > 1);
drawable = gimp_drawable_get (drawable_ID);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]