progress bar, Re: struct + GtkTreeIter



No misunderstanding, that works just fine, thanks.

New topic:
I have a list of keys (in a tree view / store).  One can generate a key,
and then the list needs to be refreshed to include the new key.  The key
generation takes some time depending on key size, and I'd like to have
the progress bar pulse.  So, what I'd like to do is first destroy the
generation dialog, then have the progress bar pulse while generating,
and then the key list is refreshed.  That's exactly what happens, except
the main window is not redrawn until the list is refreshed, so you can't
see the pulsing.  Also, there's a big white spot where the generation
dialog used to be. Is there any method I can call to repaint the main
window during the generation process so the pulsing is visible and
there's no empty white space?
Thanks

On Sun, 2002-09-08 at 02:07, Jonathan Blandford wrote:
Jacob Perkins <jap1 users sourceforge net> writes:

I'd like to somehow tie a struct and a GtkTreeIter together.  The struct
is a key with certain attributes that are displayed in a GtkTreeView
across a row (GtkTreeIter). What I have been doing is getting one of the
attributes of the selected row/iter and then searching through a key
list to get the key with that attribute.  Basically I'd like to be able
to get this key more easily.  Is there some way I can make that iter
contain my key or vice versa and have easy access to one given the
other?

Can't you just put that key in the model?  There's no rule that says
that every column in the model has to be used by the view.  Or am I
misunderstanding what you want here?

-Jonathan
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- 
pub  1024D/57DDD9E3 2002-05-24 Jacob (Direct to Home)
<jap1 rig dyndns ws>
Key fingerprint = 1E02 A5FD 8162 4322 C674  6E67 05EB 30F1 57DD D9E3



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