Hi,

Am Dienstag, den 04.09.2007, 11:26 +0200 schrieb Philipp Klaus Krause:
> I want to receive button press evvents from a widget, so far it doesn't
> work though.
> 
> Gtk::Image *paint_tileset = 0;
> refXml->get_widget("paint_tileset", paint_tileset);
> paint_tileset->add_events(Gdk::BUTTON_PRESS_MASK);

If I remember correctly Gtk::Image doesn't have its own X11 window,
which is required in order to receive button events.  You can put the
windowless widget into a Gtk::EventBox, however.

--Daniel


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

Reply via email to