Re: Receiving button press events
- From: Daniel Elstner <daniel kitta googlemail com>
- To: Philipp Klaus Krause <pkk spth de>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Receiving button press events
- Date: Tue, 04 Sep 2007 20:30:05 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]