Re: How to catch mouse events from a GtkImage?
- From: Damián Cinich <damiancinich gmail com>
- To: "David Necas (Yeti)" <yeti physics muni cz>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to catch mouse events from a GtkImage?
- Date: Thu, 27 Apr 2006 05:40:01 -0300
El día Wed, 26 Apr 2006 09:06:37 +0200
"David Necas (Yeti)" <yeti physics muni cz> escribió:
On Wed, Apr 26, 2006 at 02:32:18AM -0300, Damián Cinich wrote:
I have a little piece of code where I connect the signals
corresponding to the mouse events to a GtkImage, and then the callback
prints a message when it detect some of these signals, but it doesn't
seems to work. If I connect them to a GtkWindow it works, but it
doesn't with the GtkImage.
http://developer.gnome.org/doc/API/2.0/gtk/GtkEventBox.html
http://www.gtk.org/faq/#AEN573
Additionaly, the goal of catch the mouse events is to get the x and y
coordinates of the GtkImage for drag it arount the GtkWindow. Is it
possible? How can i do this?
Forget the event box, put the image to a GtkLayout instead
(filling the whole window) and move the widget in the
layout's mouse event signal handlers.
Thanks!!
The layout worked perfectly!
Damián
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]