few questions... mostly treeview related..



hi there. few questions ive been trying to find answers on with no avail.

I have a tree that i dont want to autosize, so im using gtk_widget_set_size_request() on it... this works 
however then if the column is too big it just extends to nowhere (ie its cut off, you can still pan with left 
and right arrows to see it but thats not ideal..). Id like the column to end properly at whatever size i 
desire. perhaps theres some other way? this also ties into my next question... say i have filenames listed, 
and one is really long (and makes the list expand to nowhere), id like to display just what would fit then 
the extension, like having:
a.txt
b.txt
somereallylongst...txt


Also is it possible to not have the column title/button (that you click to sort) on top of the column?

Also can you change the color for the current selection... ie when you select something in gtk-2.0 a light 
blue color is the default (i think, for me it is anyway). its nice but it doesnt really look good on a black 
background... im using something like
g_object_set (G_OBJECT (renderer), "background", "black", NULL);
to change the bg color, is there a list of attributes somewhere? Ive checked the api docs, i know its there, 
i just cant seem to find it?

And lastly (whew) a totally non gtk question.. if i have a path name (or file name) and it contains possibly 
./ and ../ is there some function to strip these (well..parse)?
all ive found so far is _fixpath and i cant seem to find the declaration (supposed to be in sys/stat.h 
assuming it was a reference to dos/win) and dirname seems to cause a segfault?? maybe im not using dirname 
right? it works if i do like

dirname (getcwd (0, PATH_MAX))
but if i do something like
dirname("/home/deadbeat")
it segfaults ?


anyway thanks for reading this long hopeless email. :)

-jeff



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