Derive GimpParamSpecMemsize from GParamSpecULong.

This commit is contained in:
Sven Neumann 2002-11-19 17:26:42 +00:00
parent 61945563b1
commit 419a64e2ef
4 changed files with 18 additions and 13 deletions

View File

@ -1,3 +1,8 @@
2002-11-19 Sven Neumann <sven@gimp.org>
* app/config/gimpconfig-params.[ch]: derive GimpParamSpecMemsize
from GParamSpecULong.
2002-11-19 Manish Singh <yosh@gimp.org>
* data/environ/Makefile.am: really fix a comment

View File

@ -196,7 +196,7 @@ gimp_param_memsize_get_type (void)
0, NULL, NULL
};
spec_type = g_type_register_static (G_TYPE_PARAM_UINT,
spec_type = g_type_register_static (G_TYPE_PARAM_ULONG,
"GimpParamMemsize",
&type_info, 0);
}
@ -214,18 +214,18 @@ GParamSpec *
gimp_param_spec_memsize (const gchar *name,
const gchar *nick,
const gchar *blurb,
guint minimum,
guint maximum,
guint default_value,
gulong minimum,
gulong maximum,
gulong default_value,
GParamFlags flags)
{
GParamSpecUInt *pspec;
GParamSpecULong *pspec;
pspec = g_param_spec_internal (GIMP_TYPE_PARAM_MEMSIZE,
name, nick, blurb, flags);
pspec->minimum = minimum;
pspec->maximum = maximum;
pspec->minimum = minimum;
pspec->maximum = maximum;
pspec->default_value = default_value;
return G_PARAM_SPEC (pspec);

View File

@ -50,9 +50,9 @@ GType gimp_param_memsize_get_type (void) G_GNUC_CONST;
GParamSpec * gimp_param_spec_memsize (const gchar *name,
const gchar *nick,
const gchar *blurb,
guint minimum,
guint maximum,
guint default_value,
gulong minimum,
gulong maximum,
gulong default_value,
GParamFlags flags);

View File

@ -50,9 +50,9 @@ GType gimp_param_memsize_get_type (void) G_GNUC_CONST;
GParamSpec * gimp_param_spec_memsize (const gchar *name,
const gchar *nick,
const gchar *blurb,
guint minimum,
guint maximum,
guint default_value,
gulong minimum,
gulong maximum,
gulong default_value,
GParamFlags flags);