[gtkmm] Porting a drawing area from gtkmm1.2 to gtkmm2



Hi all,

To take advantage of the thread facilities (...), I am porting my code
from gtkmm1.2 to gtkmm2.2

In my application I use a drawing area to display rgb images grabbed
from a camera. With gtkmm1.2 I used:

gint CameraDrawingArea::expose_event_impl(GdkEventExpose* gee )
{
	gdk_draw_rgb_image( this->get_window(), 
	this->get_style()->get_fg_gc(GTK_STATE_NORMAL), 0, 0, 
	this->width, this->height, GDK_RGB_DITHER_NONE, 
	(guchar *) cameraFramework->getImageBuffer(), 3 * (this->width)
);
}

(CameraDrawingArea is inherited from Gtk::DrawingArea)

With gtkmm2 the compiler complains about the first two argument types.
Can anyone give me an hint?

Thank you very much in advance.

Enrico Costanza




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