Column heading for GtkTreeViewColumn
| From: | Eddie Hixson | Date: | Tue, 11 Apr 2006 00:36:37 +0000 |
| Subject: | Column heading for GtkTreeViewColumn | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6859@lists.php.net to get a copy of this message | ||
Hi,
See example below. Is this the correct behavior for column names with
the underscore
characters in the name. Many of my column names have this underscore
character in them
and display incorrectly.
My question is. Is this the normal behavior and If so how should If
fix it to display correctly?
//the text renderer is used to display text
$cell_renderer = new GtkCellRendererText();
$column = new GtkTreeViewColumn('catalog_pk', $cell_renderer, 'text', 0);
$column->set_resizable(true);
$column->set_sort_column_id(0);
$treeview->append_column($column);
This displays 'catalogpk' with an underline under the p.
But if you do.
$column = new GtkTreeViewColumn('catalog-pk', $cell_renderer, 'text', 0);
This display 'catalog-pk' which is correct with the dash.
Regards,
Eddie