gimp r26860 - in trunk: . plug-ins/gfig
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26860 - in trunk: . plug-ins/gfig
- Date: Thu, 4 Sep 2008 14:20:58 +0000 (UTC)
Author: mitch
Date: Thu Sep 4 14:20:58 2008
New Revision: 26860
URL: http://svn.gnome.org/viewvc/gimp?rev=26860&view=rev
Log:
2008-09-04 Michael Natterer <mitch gimp org>
* plug-ins/gfig/gfig-dobject.h
* plug-ins/gfig/gfig-style.c: some more const.
Modified:
trunk/ChangeLog
trunk/plug-ins/gfig/gfig-dobject.h
trunk/plug-ins/gfig/gfig-style.c
Modified: trunk/plug-ins/gfig/gfig-dobject.h
==============================================================================
--- trunk/plug-ins/gfig/gfig-dobject.h (original)
+++ trunk/plug-ins/gfig/gfig-dobject.h Thu Sep 4 14:20:58 2008
@@ -41,7 +41,7 @@
typedef struct
{
DobjType type; /* the object type for this class */
- gchar *name;
+ const gchar *name;
/* virtuals */
DobjFunc drawfunc; /* How do I draw myself */
Modified: trunk/plug-ins/gfig/gfig-style.c
==============================================================================
--- trunk/plug-ins/gfig/gfig-style.c (original)
+++ trunk/plug-ins/gfig/gfig-style.c Thu Sep 4 14:20:58 2008
@@ -38,32 +38,31 @@
#include "gfig-style.h"
-static void gfig_read_parameter_string (gchar **text,
- gint nitems,
- gchar *name,
- gchar **style_entry);
-
-
-static void gfig_read_parameter_int (gchar **text,
- gint nitems,
- gchar *name,
- gint *style_entry);
-
-static void gfig_read_parameter_double (gchar **text,
- gint nitems,
- gchar *name,
- gdouble *style_entry);
-
-static void gfig_read_parameter_gimp_rgb (gchar **text,
- gint nitems,
- gchar *name,
- GimpRGB *style_entry);
+static void gfig_read_parameter_string (gchar **text,
+ gint nitems,
+ const gchar *name,
+ gchar **style_entry);
+
+static void gfig_read_parameter_int (gchar **text,
+ gint nitems,
+ const gchar *name,
+ gint *style_entry);
+
+static void gfig_read_parameter_double (gchar **text,
+ gint nitems,
+ const gchar *name,
+ gdouble *style_entry);
+
+static void gfig_read_parameter_gimp_rgb (gchar **text,
+ gint nitems,
+ const gchar *name,
+ GimpRGB *style_entry);
static void
-gfig_read_parameter_string (gchar **text,
- gint nitems,
- gchar *name,
- gchar **style_entry)
+gfig_read_parameter_string (gchar **text,
+ gint nitems,
+ const gchar *name,
+ gchar **style_entry)
{
gint n = 0;
gchar *ptr;
@@ -94,10 +93,10 @@
static void
-gfig_read_parameter_int (gchar **text,
- gint nitems,
- gchar *name,
- gint *style_entry)
+gfig_read_parameter_int (gchar **text,
+ gint nitems,
+ const gchar *name,
+ gint *style_entry)
{
gint n = 0;
gchar *ptr;
@@ -125,10 +124,10 @@
}
static void
-gfig_read_parameter_double (gchar **text,
- gint nitems,
- gchar *name,
- gdouble *style_entry)
+gfig_read_parameter_double (gchar **text,
+ gint nitems,
+ const gchar *name,
+ gdouble *style_entry)
{
gint n = 0;
gchar *ptr;
@@ -157,10 +156,10 @@
}
static void
-gfig_read_parameter_gimp_rgb (gchar **text,
- gint nitems,
- gchar *name,
- GimpRGB *style_entry)
+gfig_read_parameter_gimp_rgb (gchar **text,
+ gint nitems,
+ const gchar *name,
+ GimpRGB *style_entry)
{
gint n = 0;
gchar *ptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]