Re: button double click



Alternatively, you can always put a check that makes sure that the
window has not yet been created, something like:

if (window!=NULL){
   return;
}

-Edgar



Jin Chen wrote:

Hi,

I have a button and if I click it, a new window will pop up.
The problem is if the user click it twice quickly, my application
will crash. So I wish somebody can tell me how to accept only
one "click" signal from the user evenif if you clicked twice
very quickly.

Jin

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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