-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I display a BMP in a GtkImage itself in a GtkEventBox to get mouse click. When I click in the BMP, I want to: 1°) know the color of the clicked pixel 2°) display something around there For this purpose, I get a GdkPixbuf from GtkImage If the window is the size of BMP, everything is OK. On the other way, if the window is bigger than the BMP (there's a gray part on the left), the coord I get for the mouse click from GdkEventButton.x and GdkEventButton.y has an offset corresponding to the width of the gray part. How can I known the offset between the GtkEventBox (or the GtkImage) and the GdkPixbuf ? Thanks, Matthieu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFCWPqbZsPKRpqyKXkRApJtAJ98WXPdj9NlOlep0SA8cXYknHcIggCgl2hu Pa2P5wkMs3S9UdnxjVYcfjI= =XV6t -----END PGP SIGNATURE----- _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list