[shotwell/wip/phako/misc-fixes: 5/8] Fix frozen upload dialog



commit eb38030fb2095783a954c4dab3ddda1032552c9b
Author: Jens Georg <mail jensge org>
Date:   Fri Sep 7 15:57:28 2018 +0200

    Fix frozen upload dialog
    
    Or rather work-around. Dispatch pending events. Proper solution would be
    to port the REST things to use Soup async API
    
    Fixes : There is some ticket regarding this

 plugins/common/RESTSupport.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala
index d92c2648..482fd2cd 100644
--- a/plugins/common/RESTSupport.vala
+++ b/plugins/common/RESTSupport.vala
@@ -190,6 +190,9 @@ public class Transaction {
 
     private void on_wrote_body_data(Soup.Buffer written_data) {
         bytes_written += (int) written_data.length;
+        while (Gtk.events_pending()) {
+            Gtk.main_iteration();
+        }
         chunk_transmitted(bytes_written, (int) message.request_body.length);
     }
 


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