|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-22 05:16 UTC] rasviar at gmail dot com
[2009-09-22 06:11 UTC] cweiske@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 22:00:01 2025 UTC |
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