cvs: pear /PEAR_Frontend_Gtk/Gtk WidgetHTML.php

From: Date: Tue, 11 Jun 2002 14:26:32 +0000
Subject: cvs: pear /PEAR_Frontend_Gtk/Gtk WidgetHTML.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4553@lists.php.net to get a copy of this message
alan_k Tue Jun 11 10:26:32 2002 EDT Modified files: /pear/PEAR_Frontend_Gtk/Gtk WidgetHTML.php Log: fixed windows scoll bug, bigger test window Index: pear/PEAR_Frontend_Gtk/Gtk/WidgetHTML.php diff -u pear/PEAR_Frontend_Gtk/Gtk/WidgetHTML.php:1.14 pear/PEAR_Frontend_Gtk/Gtk/WidgetHTML.php:1.15 --- pear/PEAR_Frontend_Gtk/Gtk/WidgetHTML.php:1.14 Tue Jun 11 07:04:33 2002 +++ pear/PEAR_Frontend_Gtk/Gtk/WidgetHTML.php Tue Jun 11 10:26:32 2002 @@ -72,11 +72,13 @@ $this->_tokens[] = array($tag,$attribs); $this->_tokens[] = substr($b,strpos($b,'>')+1); } + /* ob_start(); print_r($this->_tokens); $test = ob_get_contents(); ob_end_clean(); $fh = fopen('/tmp/tokens', 'w'); fwrite($fh,$test); fclose($fh); + */ //exit; } var $Start = FALSE; // start rering (eg. ignore headers) @@ -1019,7 +1021,7 @@ /* ------------------------------ BASIC WIDGET STUFF ------------------*/ // - var $_area_x= 400; // default X width of Widget + var $_area_x= 600; // default X width of Widget var $_area_y= 400; // default Y width of Widget var $layout; // GtkLayout @@ -1031,6 +1033,9 @@ $this->scrolledwindow = &new GtkScrolledWindow(); $hadj = $this->scrolledwindow->get_hadjustment(); $vadj = $this->scrolledwindow->get_vadjustment(); + $hadj->connect('value-changed', array(&$this,'_LayoutScrolled')); + $vadj->connect('value-changed', array(&$this,'_LayoutScrolled')); + $this->layout = &new GtkLayout($hadj,$vadj); $this->layout->set_size($this->_area_x,$this->_area_y); $this->layout->show(); @@ -1086,7 +1091,10 @@ } - + function _LayoutScrolled() { // windows bug fix + $this->layout->queue_draw(); + } + var $pixmap; // the pixmap that everything gets drawn on function _DrawingAreaCallbackConfigure($widget, $event) { // the callback to create the pixmap & start building @@ -1623,7 +1631,7 @@ $window = &new GtkWindow(); $window->set_name('Test Input'); $window->set_position(GTK_WIN_POS_CENTER); -$window->set_usize(400,400); +$window->set_usize(600,400); $window->connect_object('destroy', array('gtk', 'main_quit')); $vbox = &new GtkVBox(); $window->add($vbox);

« previous php.pear.cvs (#4553) next »