Make multi-dimensional db_tab datagrids editable
This commit is contained in:
parent
1c84fcd674
commit
4a8dc21cf9
@ -218,6 +218,7 @@ class DB_tabs extends GTKNotebook {
|
||||
}
|
||||
|
||||
$cell_renderer = new GtkCellRendererText();
|
||||
$cell_renderer->set_property('editable', FALSE);
|
||||
$tab->insert_column_with_data_func(0, $col_name, $cell_renderer, array(self::$instance, 'add_data_col'));
|
||||
|
||||
if ( ! empty($events))
|
||||
@ -298,6 +299,7 @@ class DB_tabs extends GTKNotebook {
|
||||
foreach($cols as $i => $c)
|
||||
{
|
||||
$renderer = new GtkCellRendererText();
|
||||
$renderer->set_property('editable', TRUE);
|
||||
$tab->insert_column_with_data_func($i, $c, $renderer, array(self::$instance, 'add_data_col'), $i);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user