HELP - gtk-2.9.4 no icon load for: gtk-demo, firefox-5+
damn been doing this a while now need feedback
gtk 2.9.4 lib cannot find theme icons or default ones (ie, esp. stock icons)
(lt-gtk-demo:2766): Gtk-WARNING **: Error loading theme icon 'gtk-media-play-ltr' for stock: Failed to load icon
GTK find rend: NOT PIXBUF, print msg?
(lt-gtk-demo:2766): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
(lt-gtk-demo:2766): Gtk-CRITICAL **: gtk_default_render_icon: assertion `base_pixbuf != NULL' failed
(lt-gtk-demo:2766): Gtk-CRITICAL **: IA__gtk_style_render_icon: assertion `pixbuf != NULL' failed
(lt-gtk-demo:2766): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
I compiled (my own) Linux From Scratch. Wanted Gtk for software support (ie, fvwm). I made Gtk 1.2 and 2.9.4 both (3, not yet, way too many problems with 1,2). far as i know gtk1.2 works and so does gnome-1.xxx (i'm skippping gnome 2,3 as 1 was too timely)
so i know enough to get gnome 1.2 desktop, have fvwm2 running on 2.9.4. even ran cache update icons thing (supposedly not req.)
far as i know i installed all dependancies and re-compiled all 3x to "absorb cross-depends"
all i can see in Gtk code in gtkicontheme.c:gtk_icon_theme_load_icon
1) will load if already pre-loaded* (never)
2) will load if filename (but crashes if name is static char foo[])
must be a complex /unreliable object type?
3) will load if type svg
but the NEWST gtk/gnome icons for gtk2/gnome2 (that
dont require gtk3/gnome3) are 1/2 png 1/2 svg and
ie: "gtk-about" is not svg. i'm unsure even svg would
work.
*(note requests for default icon never get loadable - nothing in gtkicontheme.c ever tries)
meanwhile some gtk-2.9.4 demos work and show icons but not most is the problem. i think all gtk1.2 demos i ran work.
please dispel this wicked curse with bullet proof information !
but the problem is actually with debian sarge and squeeze too: after doing some updates firefox 5+ could no longer find icons. "re-installing package" of course is a laugh - would have to re-install the better part of debian after completely un-installing
-------- comments
and damn isn't the whole purpose of glib and gtk to do so, meaning minimally - a wrapper on X11 which minimally loads the simplest of widgets? and are the (mozilla other) people working on gov grants $$?
i'm finding it very difficult to decide which dependancies are needed and what versions. also ftp.gnome.org lost time on files - so one cannot even use date as an indicator of when something was released.
i think this is a problem of: they made a wrapper "to help X11 programmers do the mundane / and steal Motif" (remove job of pasting X11 code into programs or finding code to paste). HOWEVER by continually adding complexity and features it became "more glitzy" but useless to a programmer seeking simple "stable support" (as opposed to just simply pasting X11 code in their app: which NEVER FAILS and is way easier).
you see the damndest things and macros in glib/gtk code: "GtkThemePriv *GSEAL(priv) ;". and rely on the code? they break it so your app no longer compiles or even works in the field: continual breakage changes like microsoft loves.
another nuisance is glib/gtk have become a complex hack fest of supporting everything except linux (win32) posix/c - and as far as i know win32 people use that to steal linux software into win32. to such extent they are aimed to support wayland "to kill off X11, the library that they wish to avoid copyrights on but use stolen parts and wrappers of"
use X11 is my bet. and some kit really designed to offer help that doesn't make the job harder than cut and paste of code that works in any X11 (Motif? xforms maybe? or just cut and paste X11 code?)
----------------------- (bottom line)
anybody know why gtk-2.9.4 libs cannot find icons for "gtk-demo" (comes with 2.9.4 source) and firefox-5.x+ ??
what exactly is required for gtk-2.9.4 to find and load "gtk-about" in "gtk-demo" (thus, not only gtk-demo but a plethera of software which relied on gtk to ask and get icons in a particular language/fashion)
(gtk-demo makes a icon list to display a list of stock icons)
you know? not an engine problem i'm looking through code (and using gdb all libs -g) can't find where the code even *tries* to load a png. damn wierd.
|