Re: Check Box Labels



William

I don't have a straight forward answer for you, but GtkCheckButton is a derivative of GtkButton.  GtkButton is a derivative of GtkContainer.  You should be able to do something like this:

GList    *widget_children=NULL;
widget_children=gtk_container_get_children (my_check_button);

Next, walk the list widget_children doing a GTK_IS_LABEL(glist_node).  You also might have to also do a GTK_IS_CONTAINER(gslist_node) and keep probing deeper until you find the label.

I'm pretty new to GTK, but anytime you have a gtk_something_or_other_new_with_label it is usually a combination of two widgets packed into a container or packbox.

Hope this helps.


I think the check box and the label are packed into a hbox or vbox.  Therefore what you need

On Thu, 2004-07-15 at 08:33, William Ramsay wrote:
Can anyone tell me how to change the text color in a gtk check box?
The gtk_widget_modify_fg() function seems to only change the focus frame
and not the displayed label.

Thanks in advance.

Bill Ramsay
RamsayW comcast net

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list


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