[PATCH] Re: Gdk-WARNING G_MAXLONG

shellreef at gmail.com shellreef at gmail.com
Tue Aug 9 00:16:31 GMT 2005


On Sun Jul 31 21:20:26 GMT 2005, User Tomdean wrote:
>When I start mozilla, I get the warning message:
>
>(mozilla-bin:27511): Gdk-WARNING **: gdk_property_get(): length value
>has wrapped in calculation (did you pass G_MAXLONG?)
>
>I saw some references to this warning on the FreeBSD site, but, no
>solution.
>
>Where is this message coming from?  How do I eliminate it?
Try applying this patch in the work/ directory of the port (for
example, /usr/ports/www/firefox/work in my case):

--- mozilla/gfx/src/gtk/nsScreenGtk.cpp.orig    Mon Aug  8 17:10:38 2005
+++ mozilla/gfx/src/gtk/nsScreenGtk.cpp Thu Aug  4 00:43:54 2005
@@ -143,7 +143,7 @@
   if (!gdk_property_get(root_window,
                         gdk_atom_intern ("_NET_WORKAREA", FALSE),
                         cardinal_atom,
-                        0, G_MAXLONG, FALSE,
+                        0, G_MAXLONG - 3, FALSE,
                         &type_returned,
                         &format_returned,
                         &length_returned,

http://www.mail-archive.com/debian-gtk-gnome@lists.debian.org/msg11615.html
has more information. Similar fixes should apply to other GTK
applications which provide this error.

Hope this helps,
-Jeff


More information about the freebsd-gnome mailing list