Re: Beginners question abour events



On Sun, 2004-02-29 at 17:03, Douglas Phillipson wrote:
I can't seem to find why you return TRUE, or FALSE at the end of an 
event routine like:

static gboolean
button_press_event( GtkWidget *widget, GdkEventButton *event )
{
   if (event->button == 1 && pixmap != NULL)
       draw_brush (widget, event->x, event->y);

   return TRUE;
}

What happens if you return FALSE when you should be returning TRUE?
How do you know what you should be returning?

Here's the gtkmm version of the explanation:
http://www.gtkmm.org/gtkmm2/docs/tutorial/html/apbs06.html

-- 
Murray Cumming
www.murrayc.com
murrayc murrayc com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]