Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 326713

Summary: x11-misc/xpad-4.0 starts with "GLib-GObject-WARNING"; xpad notes are blank/not shown
Product: Gentoo Linux Reporter: sap
Component: New packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED FIXED    
Severity: normal CC: floppym
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch
patch for xpad-4.0.ebuild

Description sap 2010-07-03 07:14:53 UTC
My xpad notes are all shown in the right size, but the content of the windows are all grey and no content is displayed. The error message shown if started from a terminal:
GLib-GObject-WARNING **: IA__g_object_set_valist: construct property "type" for object `XpadPad' can't be set after construction

Data is not lost and can be found in ~/.config/xpad/ 

Reproducible: Always
Comment 1 sap 2010-07-03 07:22:50 UTC
Created attachment 237343 [details, diff]
patch
Comment 2 sap 2010-07-03 07:23:13 UTC
The problem might originally be related to a gtk update, but I'm not really sure.
I found a solution in a archlinux forum and in the launchpad bug reports. I attached the patch from https://bugs.launchpad.net/xpad/+bug/591978
How to fix:
1. make a local overlay for x11-misc/xpad
(I followed http://en.gentoo-wiki.com/wiki/Overlay#Local_Overlays )
2. apply the attached patch
(I followed http://devmanual.gentoo.org/ebuild-writing/functions/src_unpack/epatch/index.html )
3. re-emerge 

Comment 3 Mike Gilbert gentoo-dev 2010-07-07 01:56:13 UTC
Why did you change this to RESOLVED FIXED?  You should reopen it so that a developer will actually look at this and possibly commit the fix.

I can confirm the same problem on my system (with GTK 2.20.1). The attached patch does seem to resolve it.
Comment 4 sap 2010-07-07 05:12:31 UTC
Sorry, I didn't really think about it. Your absolutly right; I guess I set it to resolved since there is a patch, but the original package is still broken.
Thanks for the hint :)
Comment 5 Arthur Spitzer 2010-07-16 06:39:56 UTC
Created attachment 238995 [details, diff]
patch for xpad-4.0.ebuild

Hi,
I applied the above patch here, and it works fine. I'll attached a patch against the current 4.0 ebuild which is in portage, with the above patch renamed to 'fix-gobject.patch'. It would be nice to have this in the tree. Thanks.
Comment 6 Mike Gilbert gentoo-dev 2010-07-16 06:44:47 UTC
(In reply to comment #5)

In EAPI 2, patches should be applies in src_prepare().
Comment 7 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-07-18 11:08:58 UTC
Thanks, fixed in tree:

+  18 Jul 2010; Kacper Kowalik <xarthisius@gentoo.org> -xpad-2.14.ebuild,
+  -xpad-3.0.ebuild, xpad-4.0.ebuild:
+  Fix bug 326713. Thanks to sap@ausdruckswelt.de for the report and patch.
+  Remove old.
+