You are not logged in.
Pages: 1
Searching for a simple sample how GtkProgressBar is working. Preferable in Ruby with libglade or in any language.
Markku
Offline
Used it once, think it's an example in the gtk-(C)-tutorial: http://www.gtk.org/tutorial/x850.html
Offline
Offline
I managed this far but the progress bar (progress_box) only appears after the loop test is done. What's missing?
Was not able to get all characters to appear here, click the url:
http://user-contributions.org/projects/pkginfo/test.txt
Copied from here:
http://groups.google.com/group/comp.lan … 11f573a4a7
Markku
Offline
Getting closer to the solution. Progress bar box appears but cannot get the time loop to run. What's missing from the original sample:
http://groups.google.com/group/comp.lan … 11f573a4a7
My sample:
http://user-contributions.org/projects/ … /test2.txt
Markku
Offline
I'm not a ruby expert but it looks like your inner loop is set to break when you want it but returns to the outer with nothing stopping it. Try setting a variable before both loops which the inner loop will flag once its finished with its own so that the outer loop can read it and break if that variable is flagged.
Offline
Got the final solution in Ruby Forum. Its in German but supports questions in English.
http://www.rubyforen.de/viewtopic.php?p=13659
Markku
Offline
Pages: 1