forked from AuroraMiddleware/gtk
Don't warn when G_MAXLONG is passed as length.
2005-08-27 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn when G_MAXLONG is passed as length.
This commit is contained in:
parent
f906e82a93
commit
6663cc051d
@ -1,3 +1,8 @@
|
||||
2005-08-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
|
||||
when G_MAXLONG is passed as length.
|
||||
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Add a separate --ignore-theme-index option
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-08-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn
|
||||
when G_MAXLONG is passed as length.
|
||||
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Add a separate --ignore-theme-index option
|
||||
|
@ -530,11 +530,8 @@ gdk_property_get (GdkWindow *window,
|
||||
*/
|
||||
get_length = length + 3;
|
||||
if (get_length > G_MAXLONG)
|
||||
{
|
||||
g_warning ("gdk_property_get(): length value has wrapped in calculation "
|
||||
"(did you pass G_MAXLONG?)");
|
||||
get_length = G_MAXLONG;
|
||||
}
|
||||
|
||||
/* To fail, either the user passed 0 or G_MAXULONG */
|
||||
get_length = get_length / 4;
|
||||
if (get_length == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user