Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17793/src

Modified Files:
        confirmation.c 
Log Message:
         * src/confirmation.c: pressing 'OK' several time would call
           the ok_handler several times, most likely resulting in a
           crash. Thanks to dforsi for pointing this out.



Index: confirmation.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/confirmation.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- confirmation.c      26 Nov 2005 13:44:41 -0000      1.23
+++ confirmation.c      28 Apr 2006 14:56:45 -0000      1.24
@@ -1,4 +1,4 @@
-/* Time-stamp: <2005-11-25 23:52:15 jcs>
+/* Time-stamp: <2006-04-28 23:51:49 jcs>
 |
 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
 |  Part of the gtkpod project.
@@ -84,6 +84,7 @@
     cd = g_hash_table_lookup (id_hash, id);
     if (cd)
     {
+       gtk_widget_set_sensitive (cd->window, FALSE);
        if (cd->ok_handler)
            cd->ok_handler (cd->user_data1, cd->user_data2);
        cleanup (id);
@@ -97,9 +98,10 @@
     cd = g_hash_table_lookup (id_hash, id);
     if (cd)
     {
+       gtk_widget_set_sensitive (cd->window, FALSE);
        if (cd->apply_handler)
            cd->apply_handler (cd->user_data1, cd->user_data2);
-       cleanup (id);
+       gtk_widget_set_sensitive (cd->window, TRUE);
     }
 }
 
@@ -110,6 +112,7 @@
     cd = g_hash_table_lookup (id_hash, id);
     if (cd)
     {
+       gtk_widget_set_sensitive (cd->window, FALSE);
        if (cd->cancel_handler)
            cd->cancel_handler (cd->user_data1, cd->user_data2);
        cleanup (id);



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to