+void CItem::on_realize()
+{
+ Gtk::DrawingArea::on_realize();
+ Glib::RefPtr<Gdk::Window> window = get_window();
+ gc = Gdk::GC::create(window);
+
+ Glib::RefPtr<Gdk::Colormap> colormap = get_colormap();
+
+ red = Gdk::Color("red");
+ blue = Gdk::Color("blue");
+
+ colormap->alloc_color(red);
+ colormap->alloc_color(blue);
+}
+