[Glade-users] adding custom widgets



No real difference with those changes.  Same error messages.

$ glade-3 --version
glade3 3.6.1

On Tue, Apr 21, 2009 at 4:25 PM, Tristan Van Berkom
<tristan.van.berkom at gmail.com> wrote:
On Tue, Apr 21, 2009 at 4:18 PM, Gerald Britton
<gerald.britton at gmail.com> wrote:
I found a better resource:

http://www.pygtk.org/articles/custom-widgets-glade/Custom_PyGTK_Widgets_in_Glade3-part-2.html

At least it makes more sense to me than the first one. ?I followed the
instructions, saved my catalog and module like the ones there, then
fired up Glade-3.

I set the environment variables:

$ env |grep -i GLA
GLADE_MODULE_PATH=/home/jerryb1/modules
GLADE_CATALOG_PATH=/home/jerryb1/catalogs

Here's the catalog

$ cat catalogs/grampswidgets.xml
<?xml version="1.0" encoding="UTF-8"?>
<glade-catalog name="grampswidgets" library="grampswidgets"
? ? ? ? ? ? ? ? ? ? ? ? ? ?domain="glade-3" depends="gtk+" language="python">


Right, that is a great example but predates the api that we had settled on,
try simply removing the "language" statement and setting library="python",
let me know what happens .... ;-)

Cheers,
? ? ? ?-Tristan

PS: we are talking about Glade 3.6.x right ?...




-- 
Gerald Britton




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]