|
Hi Alex,
I had a similar problem with
some clists I am using but I was able to do the update before I thawed the clist
without the scrollbar jumping to the top.
Here's the code I
used.
gtk_signal_handler_block( GTK_OBJECT(clist), clist_id
);
gtk_clist_freeze(
GTK_CLIST(clist) );
hadjust =
GTK_CLIST(clist)->hadjustment->value;
vadjust =
GTK_CLIST(clist)->vadjustment->value;
gtk_clist_clear(
GTK_CLIST(clist) );
for ( inx = 0; inx <
catalog->num_items; inx++ )
{
gtk_clist_append( GTK_CLIST(clist), text );
}
gtk_adjustment_set_value(
GTK_ADJUSTMENT(GTK_CLIST(clist)->hadjustment), hadjust);
gtk_adjustment_set_value(
GTK_ADJUSTMENT(GTK_CLIST(clist)->vadjustment), vadjust);
gtk_clist_thaw(
GTK_CLIST(clist) );
gtk_signal_handler_unblock( GTK_OBJECT(clist), clist_id
);
This code works with minimal
flickering and I'm running two clists.
Hope this is
helpful,
Miranda
|
- getting scrollbar to stick Alex Chiang
- Re: getting scrollbar to stick Havoc Pennington
- Re: getting scrollbar to stick Alex Chiang
- Re: getting scrollbar to stick Havoc Pennington
- K. M. Hawarden-Ogata
