From owner-freebsd-gnome@FreeBSD.ORG Tue Aug 9 00:16:30 2005 Return-Path: X-Original-To: freebsd-gnome@freebsd.org Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EECAD16A41F for ; Tue, 9 Aug 2005 00:16:30 +0000 (GMT) (envelope-from shellreef@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89EDA43D46 for ; Tue, 9 Aug 2005 00:16:30 +0000 (GMT) (envelope-from shellreef@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so993144rne for ; Mon, 08 Aug 2005 17:16:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=upsGnu0fgTvD0JSZWi6IMGzRqfrcXbIntOZQjeeqSpor8aUig1dhbg1O+PTepgHwsAQIOZxdM0e/ZlISjUxPlw3yZgzRXE9rl+25v8HnJhD3KTbCqnJsWEE/Pgyg8tfKW3Q5CyZ/4MDu1ncAqRzpKVzCPlVJS0K4ar9cE41t5gM= Received: by 10.38.79.11 with SMTP id c11mr2740812rnb; Mon, 08 Aug 2005 17:16:29 -0700 (PDT) Received: by 10.38.89.2 with HTTP; Mon, 8 Aug 2005 17:16:29 -0700 (PDT) Message-ID: Date: Mon, 8 Aug 2005 17:16:29 -0700 From: To: freebsd-gnome@freebsd.org, tomdean@speakeasy.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: [PATCH] Re: Gdk-WARNING G_MAXLONG X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: shellreef+reply@gmail.com List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2005 00:16:31 -0000 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