Gtk Warning with GtkText and GtkScrolledWindow

From: Date: Fri, 12 Oct 2001 14:44:11 +0000
Subject: Gtk Warning with GtkText and GtkScrolledWindow
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-224@lists.php.net to get a copy of this message
I haven't found any conclusive answers online (google), maybe someone here can help me out ... The code below throws a "Gtk-WARNING **: horizontal scrolling not implemented". Anyone has an idea how to overcome this ... it's pretty annoying and not very clean for my end users. If I can't get around it, can I suppress it somehow ? Thanks, Christophe VG <? // load dynamic PHP-GTK library dl( 'php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); // build gui from code $window1 = new GtkWindow(); $button1 = new GtkButton( 'click me' ); $button1->connect( 'clicked', 'on_button1_clicked' ); $window1->add( $button1 ); $window2 = new GtkWindow(); $scroll2 = new GtkScrolledWindow(); $window2->add( $scroll2 ); $text1 = new GtkText(); $scroll2->add( $text1 ); $window3 = new GtkWindow(); $scroll3 = new GtkScrolledWindow(); $window3->add( $scroll3 ); // show it all !!! $window1->show_all(); $window2->show_all(); $window3->show_all(); function on_button1_clicked() { global $scroll2, $scroll3; global $text1; static $step = true; if( $step ) { $text1->reparent( $scroll3 ); $step = false; } else { $text1->reparent( $scroll2 ); $step = true; } } Gtk::main(); ?>

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