# Gtk:::Dialog#run blocks updates

**URL:** <https://www.ruby-forum.com/t/gtk-dialog-run-blocks-updates/63246>\
**Category:** Ruby\
**Created:** [June 13, 2006, 3:54pm UTC](https://www.ruby-forum.com/t/gtk-dialog-run-blocks-updates/63246 "2006-06-13T15:54:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Farrel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Post date:** [June 13, 2006, 3:54pm UTC](https://www.ruby-forum.com/t/gtk-dialog-run-blocks-updates/63246/1 "2006-06-13T15:54:44Z")

</div>

Hi all,

I’m busy using Ruby/GTK to popup a window showing a progress bar. The  
Gtk::ProgressBar object is inside a Gtk::Dialog. I run the dialog in  
one thread and then update it’s progress in another (calling  
progressBar.set\_fraction(progress)). However when I used dialog.run  
the progress bar does not update. When I run the dialog using  
‘dialog.show\_all;Gtk.main’ it works fine. I would prefer to use  
dialog.run if possible. Is there something I’m missing?

Farrel
