Setting initial position of GtkScrolledWindow?

From: Date: Fri, 25 Apr 2003 02:31:42 +0000
Subject: Setting initial position of GtkScrolledWindow?
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3287@lists.php.net to get a copy of this message
I'm performing a background action that requires the redraw of a GtkScrolledWindow containing a BIG list of items, and I'd like it if I could return the newly drawn page to the same scrolling position - except that I can't figure out how to. Here's what I've been trying: (This is NOT the code I'm using - but rather a conceptual representation of a much larger codebase) Pay closest attention to RedrawScrolledWindow(). How would one do this? Function DrawScrolledWindow($vbox, $vadj=null) { // $vbox has a number of GtkToggleButtons packed into a GtkVbox $scrolled=&New GtkScrolledWindow(null, $vadj); $scrolled->Add_With_Viewport($vbox); $scrolled->Show(); global $win; $win->Add($scrolled); } Function RedrawScrolledWindow() { $vbox=CreateVBox(); global $win; $scrolled=$win->child; $vadj=$scrolled->Get_VAdjustment(); $scrolled->Destroy(); DrawScrolledWindow($vbox, $vadj); }

« previous php.gtk.general (#3287) next »