| 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   
  ----- Original Message -----  Sent: Thursday, July 20, 2000 10:05 
  AM Subject: Re: getting scrollbar to 
  stick * Havoc Pennington <hp@redhat.com> [000720 12:36]:
 > Alex 
  Chiang <achiang2@rsn.hp.com> 
  writes:
 > >   GTK_ADJUSTMENT (GTK_TEXT 
  (text)->vadj)->value = pos;
 > >
 >
 > It should work 
  if you use gtk_adjustment_set_value().
 
 Thanks - that worked. However, 
  now I have the problem that everything
 flashes after setting the adjustment 
  value, and it's really annoying
 looking - especially since I have three or 
  four text widgets all doing
 this at the same time. :)
 
 I can't use 
  gtk_adjustment_set_value before I thaw the text, since
 thawing will reset 
  the adjustment value to zero. But if I try and set
 the value after thawing, 
  the flashing occurs.
 
 Any ideas on how to fix 
  this?
 
 /Alex
 
 --
 Alex 
  Chiang       <> verily, the thoughts 
  contained withal be mine own,
 Hewlett-Packard   <> and not, 
  as it were, of mine gracious employer
 ph: 
  972.497.3817
 
 _______________________________________________
 gtk-list 
  mailing list
 gtk-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-list
 
 |