summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-01-19 20:08:37 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-01-19 20:08:37 +0000
commit58c1ace70ed3fabb672a0fd6ef1fd2d28fd09ce0 (patch)
tree52c257ccf7b8bf8ceae35f242aa7465533f2bddb
parenta948d8b0572ea59f8f693a5e89c4851fcb996533 (diff)
downloadgdk-pixbuf-58c1ace70ed3fabb672a0fd6ef1fd2d28fd09ce0.tar.gz
Use GLib limit macros to avoid sparse warnings. Pointed out by Kjartan
2005-01-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
-rw-r--r--ChangeLog3
-rw-r--r--ChangeLog.pre-2-103
-rw-r--r--ChangeLog.pre-2-83
-rw-r--r--gtk/gtkobject.c8
4 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index c0b1fd6d4..2c68aa76d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2005-01-19 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
+ macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
+
* gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
atom.
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index c0b1fd6d4..2c68aa76d 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,5 +1,8 @@
2005-01-19 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
+ macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
+
* gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
atom.
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index c0b1fd6d4..2c68aa76d 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,5 +1,8 @@
2005-01-19 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkobject.c (gtk_object_add_arg_type): Use GLib limit
+ macros to avoid sparse warnings. Pointed out by Kjartan Maraas.
+
* gdk/x11/gdkdisplay-x11.c: Precache the _NET_VIRTUAL_ROOTS
atom.
diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c
index 974b9eb67..5e0699090 100644
--- a/gtk/gtkobject.c
+++ b/gtk/gtkobject.c
@@ -278,16 +278,16 @@ gtk_object_add_arg_type (const gchar *arg_name,
pspec = g_param_spec_boolean (pname, NULL, NULL, FALSE, arg_flags);
break;
case G_TYPE_INT:
- pspec = g_param_spec_int (pname, NULL, NULL, -2147483647, 2147483647, 0, arg_flags);
+ pspec = g_param_spec_int (pname, NULL, NULL, G_MININT, G_MAXINT, 0, arg_flags);
break;
case G_TYPE_UINT:
- pspec = g_param_spec_uint (pname, NULL, NULL, 0, 4294967295U, 0, arg_flags);
+ pspec = g_param_spec_uint (pname, NULL, NULL, 0, G_MAXUINT, 0, arg_flags);
break;
case G_TYPE_FLOAT:
- pspec = g_param_spec_float (pname, NULL, NULL, -1E+37, 1E+37, 0, arg_flags);
+ pspec = g_param_spec_float (pname, NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0, arg_flags);
break;
case G_TYPE_DOUBLE:
- pspec = g_param_spec_double (pname, NULL, NULL, -1E+307, 1E+307, 0, arg_flags);
+ pspec = g_param_spec_double (pname, NULL, NULL, -G_MAXDOUBLE, G_MAXDOUBLE, 0, arg_flags);
break;
case G_TYPE_STRING:
pspec = g_param_spec_string (pname, NULL, NULL, NULL, arg_flags);