Re: [Java-gnome-developer] updating GNomeAppBar.progressbar while running a long process.
Brought to you by:
afcowie
From: Manuel L. <man...@co...> - 2005-04-18 22:37:41
|
There is an example already using timer and fireable from gnome library and it seems to work fine. My problem is that I'm opening a dialog to collect some user information and after user acceptance and doing some processing. So timer and fireable does not work for me either and I was expecting to use CustomEvents but unfortunately i got the same results. Something that I believe make things more difficult is that whenever I call Dialog.hide or hideAll and it does not seems to have any effect because the Dialog does not disappear until function is completely done. One thing that can help you to fix this problem is to hide the dialog right away (require a redraw) and set focus back to the call window. =20 On Mon, 2005-04-18 at 09:09 -0300, Joao Victor wrote: > There seems to be a little problem when using progressbars. Is Manuel Led= esma =3D=3D Lamex? Because > Lamex was reporting something like this on irc this week. >=20 > It _seems_ the problem happens when you use CustomEvents to create the th= read that will update the > progressbar. So yeah, not exactly a progressbar-problem, but a CustomEven= ts-problem. It seems Jeff > is planning to rewrite the CustomEvents, or something like that. >=20 > Apparently, the progressbar works fine when you use a Timer to update the= progressbar. Maybe you > could use that, Manuel, while we fix the CustomEvents (if that's what you= 're using). The way to > use it is to store in some Class field the current progressbar fraction; = and on every timeout of > the Timer you update the progressbar with the current fraction. Hmmm we n= eed a tutorial on this... > well, if you didn't understand i could write some example code for you. S= o let us know if you > can't fix the problem. >=20 > Cheers, > J.V. >=20 >=20 >=20 >=20 > --- Andrew Cowie <an...@op...> wrote: > > On Sun, 2005-17-04 at 11:18 -0400, Manuel Ledesma wrote: > > > I can not download your code. > >=20 > > I just tested the commands listed there, and they appeared to work fine= . > > Andrew Overholt at Red Hat ran the instructions last week and they > > worked. What seems to be the problem, precisely? > >=20 > > > Could you send the a tar/zip ? > >=20 > > Preparing and posting such is the task I might do in the next week or s= o > > that I referred to ... but the arch commands should work fine. > >=20 > > [Yes, tla Arch is a bit silly, and I've switched away from it to Darcs] > >=20 > > AfC > > San Francisco >=20 >=20 >=20 > =09 > =09 > =09 > Yahoo! Acesso Gr=E1tis - Internet r=E1pida e gr=E1tis.=20 > Instale o discador agora! http://br.acesso.yahoo.com/ >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |