Determining if widget has children

2003-11-21 Thread Mike Dailey
Is there an easy way to determine if a widget--say a
GTK scrolled window--has any child widgets packed into
it?

I've looked for a "gtk_is_parent" type function, but
no luck.

Any help?  Thanks!

Mike
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


(no subject)

2003-11-20 Thread Mike Dailey
Tim:

Thank you!  That works beautifully!  My app looks MUCH
better now with a little color!

Thanks a million!

Now if I can figure out how to add space between
columns, my data won't look so bunched up.

Thanks,

Mike Dailey


Message: 6
Date: Thu, 20 Nov 2003 10:02:47 +1300
From: Tim Evans <[EMAIL PROTECTED]>
Organization: Applied Research Associates NZ Ltd
To: "Carl B. Constantine" <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: GTK TreeView Column Header Colors

Carl B. Constantine wrote:

> * Mike Dailey ([EMAIL PROTECTED]) wrote:
> 
>>Is it possible to change the foreground and
background
>>color of the column header in a GTK TreeView, using
a
>>ListStore as the model?
> 
> 
> Nope, I tried and tried. the Header lables, AFAICT,
cannot be changed
> from the standard colors. I'd be interested if
anyone can prove me 
wrong
> though.

It is possible, just not particularly obvious.  What
you need to do is 
call gtk_tree_view_column_set_widget, passing in your
own label that is 
set to display the column title.  Once the label is
shown and realized, 
call gtk_widget_get_parent three times, which should
move up through a 
GtkAlignment and a GtkHBox to give you a GtkButton. 
This button is the 
column header.  Calling gtk_widget_modify_bg on it
will change the 
background colour of the column header.

-- 
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/



___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


TreeView Functionality Questions

2003-11-19 Thread Mike Dailey
A few questions regarding TreeViews (yes, I read the
FAQs and API documentation)...

Is it possible to add spacing between TreeView
columns?

Is it possible to add a verticle line/seperator
between columns?


Thanks!

-Mike



___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK TreeView Column Header Colors

2003-11-19 Thread Mike Dailey
Is it possible to change the foreground and background
color of the column header in a GTK TreeView, using a
ListStore as the model?

I found that I can successfully pack a widget (say, a
button with a label) into the column header, and
change the colors of this button/label widget, but it
just doesn't look right since the button does not
expand to fill the entire column header cell.  

Is there an easier way to do this?  As always, any
help is greatly appreciated, and some example code
would be a miracle! :-)

Thanks,

Mike

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list