gtk+ 3 custom widget and ui file



Hi,

I started to write my custom widget, but how can I use it with ui file ? I try to basically adding it :

                <child>
                  <object class="CircularButton" id="your mama!">
                  </object>
                </child>

when I start my application, I got :

Invalid object type 'CircularButton'

you can found the code of the widget here (it stills wip, any comment about is welcomed):

circularbutton.cpp : http://pastebin.com/gxT72nVV

circularbutton.h : http://pastebin.com/m6TxN5fM

no idea how to figure if the problem comes from my implementation or if I have to set something somewehere to make the ui happy...

 

regards,

Nicolas J.

 


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