Re: gtk_connect_signal_object HELP PLEASE !
- From: Mark Leisher <mleisher crl nmsu edu>
- To: Gtk users <gtk-list gnome org>
- Subject: Re: gtk_connect_signal_object HELP PLEASE !
- Date: Fri, 8 Dec 2000 11:26:02 -0700 (MST)
You just had the widgets swapped in the signal connect call. The way I think
about this kind of signal handling is "the event on the drawing area (first
object) should be reported on the status bar (second object)."
Original:
gtk_signal_connect_object(GTK_OBJECT (status_bar)
,"motion_notify_event"
,(GtkSignalFunc) motion_notify_event
,GTK_OBJECT (drawing_area));
New:
gtk_signal_connect_object(GTK_OBJECT (drawing_area)
,"motion_notify_event"
,(GtkSignalFunc) motion_notify_event
,GTK_OBJECT (status_bar));
-----------------------------------------------------------------------------
Mark Leisher
Computing Research Lab Cinema, radio, television, magazines are a
New Mexico State University school of inattention: people look without
Box 30001, Dept. 3CRL seeing, listen without hearing.
Las Cruces, NM 88003 -- Robert Bresson
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]