Background of Drawarea (in Viewport)
- From: "olivier_martin" <olivier_martin laposte net>
- To: "gtkmm-list" <gtkmm-list gnome org>
- Subject: Background of Drawarea (in Viewport)
- Date: Thu, 29 Dec 2005 18:25:42 +0100
Hi,
I try to find what is the problems but I don't find ...
I would like to have a white background in my Drawarea widget
but i don't manage ...
That is my source code :
MyComponent::MyComponent() {
set_events(Gdk::EXPOSURE_MASK | Gdk::BUTTON_PRESS_MASK
| Gdk::BUTTON_RELEASE_MASK | Gdk::POINTER_MOTION_MASK);
area.set_size_request(800,800);
add(area);
Glib::RefPtr<Gdk::Window> window = area.get_window();
window->set_background(Gdk::Color("white"));
window->clear();
}
MyComponent inherent Gtk::Viewport
area = Gtk::Drawarea
This code through a SEGFAULT on the line
"window->set_background(Gdk::Color("white"));".
Thanks in advance
Accédez au courrier électronique de La Poste : www.laposte.net ;
Jusqu'au 25 décembre, participez au grand jeu du Calendrier de l'Avent et
gagnez tous les jours de nombreux lots, + de 300 cadeaux en jeu !
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]