From 4a8dc21cf9e64b63ddd9f87d1ba5e37c45918e32 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 10 Apr 2012 16:57:33 -0400 Subject: [PATCH] Make multi-dimensional db_tab datagrids editable --- sys/windows/widgets/db_tabs.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/windows/widgets/db_tabs.php b/sys/windows/widgets/db_tabs.php index 8260c17..35c15a4 100644 --- a/sys/windows/widgets/db_tabs.php +++ b/sys/windows/widgets/db_tabs.php @@ -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); }