Re: [gtk-list] C++ and signals ???
- From: Tero Pulkkinen <terop students cc tut fi>
- To: serge astro unc edu
- Cc: gtk-list redhat com
- Subject: Re: [gtk-list] C++ and signals ???
- Date: 30 Mar 1998 12:47:30 +0300
Sergei Naumov <serge@astro.unc.edu> writes:
> I am writing a little C++ class that basically encapsulates gtk_drawing_area,
> and I have a rather dumb question. Here is a piece of code:
>
> Page::Page (int Xs,int Ys) {
> Xsize = Xs;
> Ysize = Ys;
>
> DArea = gtk_drawing_area_new();
> gtk_drawing_area_size (GTK_DRAWING_AREA(DArea),Xsize,Ysize);
>
> gtk_signal_connect (GTK_OBJECT(DArea), "exposure_event",
> GTK_SIGNAL_FUNC (PageRedrawEvent),
> NULL);
> I get the message that exposure_event is not found in the GtkDrawingArea
> ancestoty. What is it I am doing wrong here?
I think its called expose_event :) (one more thing that C interface only
have runtime "type" check on.. )
--
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]