![]() |
2010-12-08
, 06:41
|
Posts: 85 |
Thanked: 38 times |
Joined on Sep 2010
@ Canada
|
#2
|
![]() |
2011-01-14
, 00:58
|
Posts: 1 |
Thanked: 0 times |
Joined on Jan 2011
|
#3
|
GLIB CRITICAL ** Gtk - gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed
![]() |
2011-01-14
, 17:13
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#4
|
I was going to ask a question here, but it seems I may have already solved it myself.
I thought I might let those who find it interesting know that I'm trying to write a Glade Catalog (for Glade-3) to more easily be able to more easily design windows.
For people interested in either using it or helping with it, it can be found here: http://gist.github.com/413151
If you are going to use it, it either needs to be located in Glade's catalog directory (/usr/share/glade3/catalogs for me) or set the GLADE_CATALOG_PATH variable to the directory containing it.
You, of course, need to have libhildon installed (libhildon-1-0 and libhildon-1-dev in Ubuntu 10.04 and libhildon and libhildon-devel in fedora 13) and at the right version, probably would be best to build the lastest version yourself (fedora's libhildon version is old)
And if you are going to use GTK controls in your apps as well, be sure to select the right GTK version in your project preferences, since that caused the problem I was initially going to ask, glade told gtkbuilder gtk 2.16 was needed and maemo only has 2.14, so when I'd add a gtk widget the xml wouldn't be parsed correctly.
Attached is the glade file (renamed to txt so I could upload it) I used to test it, made with glade, no editing after (except rename).
As you can see it uses a hildonwindow, with a hildonpannablearea, then a gtkviewport and a gtkvbox to show 20 hildonbuttons.
Here's the code I used to load it:
Last edited by slash; 2010-06-15 at 20:25. Reason: Forgot the -dev packages needed