php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49584 GtkTreeView Problem
Submitted: 2009-09-18 05:23 UTC Modified: 2009-09-22 06:11 UTC
Votes:5
Avg. Score:3.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:5 (100.0%)
Same OS:5 (100.0%)
From: rasviar at gmail dot com Assigned:
Status: Not a bug Package: PHP-GTK related
PHP Version: 5.2SVN-2009-09-18 (snap) OS: Windows Xp
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rasviar at gmail dot com
New email:
PHP Version: OS:

 

 [2009-09-18 05:23 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-22 05:16 UTC] rasviar at gmail dot com
Any one there to help?.
 [2009-09-22 06:11 UTC] cweiske@php.net
The bug tracker is no forum or mailing list. Please seek help on php-gtk-general@lists.php.net
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC