Re: Solved: gtk_widget_add_events and GtkDrawingArea
- From: Sven Neumann <sven gimp org>
- To: pvosta unionbio-eu com
- Cc: GTK-list <gtk-list gnome org>, Glade <glade-users ximian com>
- Subject: Re: Solved: gtk_widget_add_events and GtkDrawingArea
- Date: 30 Jul 2002 17:39:38 +0200
Hi,
Peter Van Osta <pvosta unionbio-eu com> writes:
> By adding "gtk_widget_add_events" in the "expose_event" callback
> function I could set the additional event(s) at the moment the
> GtkDrawingArea pops up. I have included the sample code below. I don't
> expect any problems to occur when the GtkDrawingArea pops up several
> times ?
it's unneeded overhead but it shouldn't cause any problems. I'd
suggest to move the call to gtk_widget_add_events() to the realize
callback instead (if there really is no other way to access the widget
pointer because of Glade weirdnesses).
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]