#49584 [Opn->Bgs]: GtkTreeView Problem
[email protected] Tue, 22 Sep 2009 06:11:06 GMT
| Newsgroups | php.gtk.dev |
|---|---|
| Message-ID | <[email protected]> |
ID: 49584 Updated by: [email protected] Reported By: rasviar at gmail dot com -Status: Open +Status: Bogus Bug Type: PHP-GTK related Operating System: Windows Xp PHP Version: 5.2SVN-2009-09-18 (snap) New Comment: The bug tracker is no forum or mailing list. Please seek help on [email protected] Previous Comments: ------------------------------------------------------------------------ [2009-09-22 05:16:14] rasviar at gmail dot com Any one there to help?. ------------------------------------------------------------------------ [2009-09-18 05:23:56] rasviar at gmail dot com 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 this bug report at http://bugs.php.net/?id=49584&edit=1