Re: Setting the font for Gtk::Button



Hi.

I would try gtk_bin_get_child(), since it is a subclass of GtkBin.

http://library.gnome.org/devel/gtk/stable/GtkBin.html#gtk-bin-get-child

What is packed into button depends on how the button was constructed.
If you only set it's label, then GtkLabel will indeed be the child; in
any other situation (if the image has been set alongside label for
example) gtk_bin_get_child() will return container that holds various
pieces together.

My advice to you would be to create label manually and then simply
pack it into empty GtkButton using gtk_container_add().

Tadej

-- 
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com



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