Re: Gtk Warning with GtkText and GtkScrolledWindow
| From: | Markus Fischer | Date: | Fri, 12 Oct 2001 13:36:49 +0000 |
| Subject: | Re: Gtk Warning with GtkText and GtkScrolledWindow | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-228@lists.php.net to get a copy of this message | ||
Beeing clever myself I tried this already myself but it doesn't
work. Looking at the 1.2.10 sources I can't really see how to
avoid this. But then, I'm not quite sure what the condition
really means which spits out the g_warning.
Anyway, Christoph, you can use shell redirecting to nuke those
stderr messages :
php -f scrolltest.php 2>/dev/null
On Fri, Oct 12, 2001 at 08:23:39AM -0500, Andrei Zmievski wrote :
> Try setting horizontal scrolling policy to none:
>
> $scroll2->set_policy(GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
>
> On Fri, 12 Oct 2001, Christophe VG wrote:
> > 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();
> >
> > ?>
> >
> >
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-gtk-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> -Andrei
>
> "Everything has its wonders, even darkness and silence, and I learn,
> whatever state I may be in, therein to be content." - Helen Keller
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: mfischer@guru.josefine.at
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0
-All your scripts are belong to Zend-