From: rasviar at gmail dot com Operating system: Windows Xp PHP version: 5.2SVN-2009-09-18 (snap) PHP Bug Type: *Graphics related Bug description: GtkTreeView Problem
Description: ------------ I am using GktTreeView for displaying my search result output in one column. Its displaying perfectly, but the problem is when i go for next search result in same TreeView, with out closing the window, it is increasing one more column along with new result. I want destroy or reinitialize the GtkTreeView. is it possible?. Note: I am using glade. Reproduce code: --------------- //$this->tv_url already defined $listStore_url = new GtkTreeStore(Gobject::TYPE_STRING); for($i=0;$i<$count1;$i++) { //parent $tree_parent = $listStore_url->append(null,array(parse_url($arr2[$i][0],PHP_URL_HOST))); $count2=count($arr2[$i]); for($j=0;$j<$count2;$j++) { //child $listStore_url->append($tree_parent,array($arr2[$i][$j])); } } $this->tv_url->set_model($listStore_url); $column_url = new GtkTreeViewColumn(); $column_url->set_title('URL List'); $this->tv_url->insert_column($column_url, 0); $cell_renderer_url = new GtkCellRendererText(); $column_url->pack_start($cell_renderer_url, true); $column_url->set_attributes($cell_renderer_url, 'text', 0); Expected result: ---------------- //while displaying first time result column1 heading output list output list output list //while displaying Second time result with out closing window column1 heading column1 heading output list output list output list output list output list output list Actual result: -------------- //while displaying first time result column1 heading output list output list output list //while displaying second time result column1 heading output list output list output list -- Edit bug report at http://bugs.php.net/?id=49584&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49584&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49584&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49584&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49584&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49584&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49584&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49584&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49584&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49584&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49584&r=support Expected behavior: http://bugs.php.net/fix.php?id=49584&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49584&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49584&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49584&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49584&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49584&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49584&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49584&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49584&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49584&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49584&r=mysqlcfg