Hi Rick,
sorry for lag : study... work... study... work... so on... I can't extract your tarball. I got : tar: This does not look like a tar archive I use tar Version : 1.28-1 regards, Nicolas On 2016-04-07 12:24, Rick Tee wrote: > On 06/04/16 16:22, [email protected] wrote: > > Hi, > > I added a question with a full example here : > > http://stackoverflow.com/questions/36369055/gtkerrorgtkwidget-c12314gtk-widget-real-realize-assertion-failed-gtk-wi > [1] > [7] > > Maybe for people who use gtk+ for years, things are clear, but for > me.... I'm using gtk+3 for 2 weeks (i'm a part-time worker )... things > are far to be clear. Last weekend I got gtk+ from git to look directly > to the code and try to make a simple widget. I'm stuck on that problem > for a week now... > > regards, > > Nicolas > > On 2016-04-03 21:29, Daniel Espinosa wrote: > > You should read at: > > https://wiki.gnome.org/HowDoI/CustomWidgets#Templates [2] [1 [2]] > El abr. 1, 2016 12:50 PM, <[email protected]> escribió: > > hi, > > I still don't have my widget, but I don't get the msg error anymore after > adding : > > circular_button_new () > > circularbutton.cpp : http://pastebin.com/VhCrE0SV [3] [2 [3]] > > circularbutton.h : http://pastebin.com/abWHxFKY [4] [3 [4]] > > still looking for help > > regards, > > Nicolas J> > > On 2016-04-01 13:27, [email protected] wrote: > > 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 [5] [4 [5]] > > circularbutton.h : http://pastebin.com/m6TxN5fM [6] [5 [6]] > > 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. > > _______________________________________________ > gtk-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gtk-list [7] [6 [7]] > > _______________________________________________ > gtk-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gtk-list [7] [6 [7]] > > Links: > ------ > [1] https://wiki.gnome.org/HowDoI/CustomWidgets#Templates [2] > [2] http://pastebin.com/VhCrE0SV [3] > [3] http://pastebin.com/abWHxFKY [4] > [4] http://pastebin.com/gxT72nVV [5] > [5] http://pastebin.com/m6TxN5fM [6] > [6] https://mail.gnome.org/mailman/listinfo/gtk-list [7] > [7] > http://stackoverflow.com/questions/36369055/gtkerrorgtkwidget-c12314gtk-widget-real-realize-assertion-failed-gtk-wi > [1] > > _______________________________________________ > gtk-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gtk-list [7] I've been struggling for a while to get my head around gtk3 so this may not be the best way to go about solving your problem but who knows maybe it will help. See attached for a subclass of button (sorrow_button) if it's right all you need is to implement the draw() routine to make it round. Regards Rick On 2016-04-07 12:24, Rick Tee wrote: > On 06/04/16 16:22, [email protected] wrote: > > Hi, > > I added a question with a full example here : > > http://stackoverflow.com/questions/36369055/gtkerrorgtkwidget-c12314gtk-widget-real-realize-assertion-failed-gtk-wi > [1] > [7] > > Maybe for people who use gtk+ for years, things are clear, but for > me.... I'm using gtk+3 for 2 weeks (i'm a part-time worker )... things > are far to be clear. Last weekend I got gtk+ from git to look directly > to the code and try to make a simple widget. I'm stuck on that problem > for a week now... > > regards, > > Nicolas > > On 2016-04-03 21:29, Daniel Espinosa wrote: > > You should read at: > > https://wiki.gnome.org/HowDoI/CustomWidgets#Templates [2] [1 [2]] > El abr. 1, 2016 12:50 PM, <[email protected]> escribió: > > hi, > > I still don't have my widget, but I don't get the msg error anymore after > adding : > > circular_button_new () > > circularbutton.cpp : http://pastebin.com/VhCrE0SV [3] [2 [3]] > > circularbutton.h : http://pastebin.com/abWHxFKY [4] [3 [4]] > > still looking for help > > regards, > > Nicolas J> > > On 2016-04-01 13:27, [email protected] wrote: > > 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 [5] [4 [5]] > > circularbutton.h : http://pastebin.com/m6TxN5fM [6] [5 [6]] > > 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. > > _______________________________________________ > gtk-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gtk-list [7] [6 [7]] > > _______________________________________________ > gtk-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gtk-list [7] [6 [7]] > > Links: > ------ > [1] https://wiki.gnome.org/HowDoI/CustomWidgets#Templates [2] > [2] http://pastebin.com/VhCrE0SV [3] > [3] http://pastebin.com/abWHxFKY [4] > [4] http://pastebin.com/gxT72nVV [5] > [5] http://pastebin.com/m6TxN5fM [6] > [6] https://mail.gnome.org/mailman/listinfo/gtk-list [7] > [7] > http://stackoverflow.com/questions/36369055/gtkerrorgtkwidget-c12314gtk-widget-real-realize-assertion-failed-gtk-wi > [1] > > _______________________________________________ > gtk-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gtk-list [7] I've been struggling for a while to get my head around gtk3 so this may not be the best way to go about solving your problem but who knows maybe it will help. See attached for a subclass of button (sorrow_button) if it's right all you need is to implement the draw() routine to make it round. Regards Rick Links: ------ [1] http://stackoverflow.com/questions/36369055/gtkerrorgtkwidget-c12314gtk-widget-real-realize-assertion-failed-gtk-wi [2] https://wiki.gnome.org/HowDoI/CustomWidgets#Templates [3] http://pastebin.com/VhCrE0SV [4] http://pastebin.com/abWHxFKY [5] http://pastebin.com/gxT72nVV [6] http://pastebin.com/m6TxN5fM [7] https://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________ gtk-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtk-list
