Eduardo Paz wrote:

Hi everyone! I'm new in using gtkmm, and I have a lot of questions. I
know it would be easy but I couldn find the solution looking at the
API.
Well, the first one is how i can color the background of a box (for
example). Here is the code I've written :
// Constructor of Gtk::Window
.....
add(box);
box.get_window()->set_bakground(..color..);
....

Override on_realize() and call get_window() from there ...

I got a Sig-sev because the Gdk::Window that get_window returns is NULL.
Is another way to make this or I'm making something wrong??
_______________________________________________
gtkmm-list mailing list
[email protected] <mailto:[email protected]>
http://mail.gnome.org/mailman/listinfo/gtkmm-list


_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to