From: Max <max...@ca...> - 2013-02-07 15:50:37
|
Hello. I'm trying to use icon for my widget: thingy <- hBoxNew False 2 ico <- imageNewFromFile "~/.cache/icons/junk.ico" silly <- labelNew (Just "silly name") boxPackStart thingy ico PackNatural 1 boxPackStart thingy silly PackGrow 0 widgetShowAll thingy It almost works - widget elements are in the right places, text is displayed but instead of my icon I see the generic icon from my gtk theme. It seems like icon loading failed for some reason but how do I troubleshoot that? I've checked the icon file - it's there and it's correct. Is there way to know what exactly imageNewFromFile is unhappy about? I see following error in console: Gtk-CRITICAL **: gtk_box_pack: assertion `child->parent == NULL' failed but I'm not sure how to relate it to particular place in my code :( I'm not even sure if this error related at all - upon app exit I got another one: Gtk-CRITICAL **: IA__gtk_window_group_remove_window: assertion `window->group == window_group' failed and it doesn't make any sense either. cheers, Max. |