Re: button double click



My application doesn't crash if I double click on the button... it is a popup style window that is modal..... maybe making it modal will prevent it from crashing or maybe I'm just lucky..... :)


Edgar Hilton wrote:
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

_______________________________________________
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]