#49584 [Opn]: GtkTreeView Problem

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown #49584 [Opn]: GtkTreeView Problem

by Php - GTK - Dev mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 ID:               49584
 User updated by:  rasviar at gmail dot com
 Reported By:      rasviar at gmail dot com
 Status:           Open
 Bug Type:         PHP-GTK related
 Operating System: Windows Xp
 PHP Version:      5.2SVN-2009-09-18 (snap)
 New Comment:

Any one there to help?.


Previous Comments:
------------------------------------------------------------------------

[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


--
PHP-GTK Development Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php