Re: problem handling "mouse button press"
- From: Jim Parker <hopeye cfl rr com>
- To: Gregory Babusiaux <gbabusia ulb ac be>, gtk-app-devel-list gnome org
- Subject: Re: problem handling "mouse button press"
- Date: Sun, 17 Mar 2002 21:42:43 -0500
G'Day !
I believe your problem is that you need to cast your callback to a
GTK_SIGNAL_FUNC as follows:
gtk_signal_connect(GTK_OBJECT(pixmap), "button_press_event",
GTK_SIGNAL_FUNC(callback), NULL);
cheers,
Jim Parker
On Mon, 18 Mar 2002, Gregory Babusiaux wrote:
Date: Mon, 18 Mar 2002 02:43:53 +0100 (MET)
To: gtk-app-devel-list gnome org
From: Gregory Babusiaux <gbabusia ulb ac be>
Sender: gtk-app-devel-list-admin gnome org
Subject: problem handling "mouse button press"
hi, here's my problem,
i got a pixmap on my main window and i would like to catch the button
press event on this pixmap
to create my pixmap i use the function gtk_create_pixmap_from_xpm
and my main window only contains my pixmap
i tried the function
gtk_signal_connect(pixmap, "button_press_event", cllaback, NULL) but it
doesn't work???
thanks for reading
greg, brussels, belgium
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]