[Glade-users] Problem on adding custom widget in glade
Tristan Van Berkom
tristan.van.berkom at gmail.com
Tue Feb 16 01:25:28 EST 2010
On Tue, Feb 16, 2010 at 1:19 AM, Muhammad Zillur Rahman Jamali
<zillur.rahman at bjitgroup.com> wrote:
> How to link the widget code into executable.
> Actually i have followed the eggclock almost.
>
In the catalog that plugin specifies libegg as the library,
Glade loads that library by hand (it can actually be a plugin
library for implementing editing features inside Glade, which
should usually link to the actual widget library).
You need to tell gcc in what library you put the widget you
need and link when you compile your executable (gcc -lmylib)
Cheers,
-Tristan
> With Best Regards
> Muhammad Zillur Rahman Jamali
> BJIT Ltd.
>
>
>
> Tristan Van Berkom wrote:
>> On Mon, Feb 15, 2010 at 10:41 PM, Muhammad Zillur Rahman Jamali
>> <zillur.rahman at bjitgroup.com> wrote:
>>
>>> Hi,
>>> I have
>>> -Created a share library
>>> -Created xml
>>> and put them in
>>>
>>> .so into /usr/lib/glade3/modules/
>>> xml into /usr/share/glade3/catalogs/
>>>
>>> the widget is showing in interface designer.
>>> But when trying to execute creating a design it does not show anything.
>>>
>>> I mainly followed this link:
>>> http://virtualex.linuxoid.net/2009/08/18/glade-catalog-tutorial/
>>> its working only when it calls from current directory like the example.
>>>
>>
>> Dont follow exactly, it works loading your widget into Glade but not into
>> your program using GtkBuilder ?
>>
>> How is your widget type named ? and is the widget code linked into
>> your executable when running it ?
>>
>> Cheers,
>> -Tristan
>>
>>
>
More information about the Glade-users
mailing list