Re: stupid desktop question
Wow, I'm impressed. How did you find this so quickly? I didn't even
try to look into it because I had no idea what I should be googling
for! ;-)
--david
>>>>> On Thu, 16 Dec 2004 16:51:10 +1100, Ian Wienand <ianw@gelato.unsw.edu.au> said:
Ian> On Wed, Dec 15, 2004 at 03:45:26PM -0800, David Mosberger
Ian> wrote:
>> Anybody else noticed this and/or know where the problem is? Is
>> it just operator error?
Ian> I hadn't noticed it till you pointed it out, but then it
Ian> annoyed me :)
Ian> The problem is that _NET_WORKAREA isn't being found correctly.
Ian> So, digging deeper, we are getting _NET_WORKAREA via
Ian> gdk_property_get()
Ian> Looking @
Ian> http://developer.gnome.org/doc/API/2.0/gdk/gdk-Properties-and-Atoms.html#gdk-property-get
Ian> gdk_property_get takes an 'gulong' argument length that the
Ian> documentation says
Ian> length : the length of the data to delete. (in bytes, but the
Ian> actual retrieved length will be the next integer multiple
Ian> multiple of four greater than this!)
Ian> huh? Anyway gdk_property_get calculates length as ((length +
Ian> 3) / 4). However, Nautilus passes a length value to
Ian> gtk_property_get of LONG_MAX which gets wrapped around by the
Ian> calcuation. gdk_property_get then passes this onto
Ian> XGetWindowProperty which thus returns 0 bytes of data. Of
Ian> course the function doesn't fail, but it doesn't return
Ian> anything useful, either.
Ian> I think a real fix might be re-writing these interfaces to be
Ian> sane; but the attached makes the icon sit in the right place
Ian> for me (if no-one can suggest a better fix I'll file this as a
Ian> bug).
Reply to: