Re: GtkDrawingArea & signal
- From: "Steph" <Steph Fox btinternet com>
- To: <jylam lnxscene org>, <gtk-list gnome org>
- Subject: Re: GtkDrawingArea & signal
- Date: Fri, 12 Apr 2002 12:33:05 +0100
'clicked' is a gtkbutton signal.
mouse click signals are button press/release event signals.
----- Original Message -----
From: "Jean-Yves Lamoureux" <jylam lnxscene org>
To: <gtk-list gnome org>
Sent: Friday, April 12, 2002 12:27 PM
Subject: GtkDrawingArea & signal
> Hi all
>
> I would like to get events on a GtkDrawingArea, especially the mouse clicks
> and mouse position.
> I wrote that :
>
> gtk_signal_connect (GTK_OBJECT (MyWindow->MyDrawingArea), "clicked",
> GTK_SIGNAL_FUNC (MyHandler), GTK_OBJECT (file_menu));
> gtk_widget_set_events (GTK_OBJECT (MyWindow->MyDrawingArea), 0 );
>
> But gtk says that :
>
> Gtk-WARNING **: gtk_signal_connect(): could not find signal "clicked" in the
> `GtkDrawingArea' class ancestry
>
> Gtk-CRITICAL **: file gtkwidget.c: line 3824 (gtk_widget_set_events):
> assertion `!GTK_WIDGET_REALIZED (widget)' failed.
>
>
> How can I fix that ?
> --
> Jean-Yves Lamoureux
> Software Developper
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]