On Thu, Mar 10, 2005 at 12:05:50PM -0400, André Pedralho wrote: > > if (the button of the mouse is being pressed over a button for 10 sec) > then do a thing;
Take a look at the documentation on g_timeout_add() ;-) When the button is pressed (that is in "button-pressed-event" handler) set up timeout. When it's released, destroy the timeout. If the timeout function is called, you know button was being pressed for 10 seconds. Yeti -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list