After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564726 - configure doesn't detect pygtk in alternative directories
configure doesn't detect pygtk in alternative directories
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: Core
Git master
Other Linux
: Normal normal
: ---
Assigned To: Deskbar Applet Maintainer(s)
Deskbar Applet Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-12-16 12:15 UTC by Frederic Peters
Modified: 2008-12-16 18:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
fixed configure check for gnomeapplet python module (406 bytes, patch)
2008-12-16 12:16 UTC, Frederic Peters
committed Details | Review

Description Frederic Peters 2008-12-16 12:15:20 UTC
Recently a configure check has been added to detect the gnomeapplet module.

However, in order to work with non-standard installation paths it is required to do "import pygtk; pygtk.require('2.0')" first to get the Python system path correctly configured.

Also it looks like gnomeapplet (may?) require threading to be enabled:

>>> import gnomeapplet

** (.:11887): WARNING **: g_thread_init() has not been called. ORBit2 would like to use threads, so the application should have called g_thread_init(NULL) before any GLib or GLib-using API. Calling g_thread_init() now here inside the libORBit-2 library is too late, so instead threads won't be used by ORBit2. This might have bad side-effects. Fix the application!

GLib-ERROR **: The thread system is not yet initialized.
aborting...
Comment 1 Frederic Peters 2008-12-16 12:16:11 UTC
Created attachment 124789 [details] [review]
fixed configure check for gnomeapplet python module

This patch addresses both issues.
Comment 2 Sebastian Pölsterl 2008-12-16 18:49:03 UTC
Thanks a lot for the patch. I committed it to trunk and gnome-2-24 branch.