summaryrefslogtreecommitdiffstats
path: root/views/examples/table2_example.h
diff options
context:
space:
mode:
authorsatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 09:48:42 +0000
committersatorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 09:48:42 +0000
commit4441bbed72c07151797f4f69c978b8374fb0bac0 (patch)
treec221372e8a7867ff71b6307f7dc1377192921106 /views/examples/table2_example.h
parentda86a4cd91b795f2bcfa1c1508ec89bb9a908c37 (diff)
downloadchromium_src-4441bbed72c07151797f4f69c978b8374fb0bac0.zip
chromium_src-4441bbed72c07151797f4f69c978b8374fb0bac0.tar.gz
chromium_src-4441bbed72c07151797f4f69c978b8374fb0bac0.tar.bz2
Implement selection of rows on mouse clicks in TableView2 for GTK.
Before this change, clicking rows in TableView2 for GTK did not select the clicked rows. TEST=manually with view_examples. BUG=none Review URL: http://codereview.chromium.org/1015005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41825 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/examples/table2_example.h')
-rw-r--r--views/examples/table2_example.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/examples/table2_example.h b/views/examples/table2_example.h
index 475faf6..5fa783a 100644
--- a/views/examples/table2_example.h
+++ b/views/examples/table2_example.h
@@ -116,7 +116,8 @@ class Table2Example
// TableViewObserver implementation:
virtual void OnSelectionChanged() {
- PrintStatus(L"Selection changed");
+ PrintStatus(L"Selection changed: %d",
+ table_->GetFirstSelectedRow());
}
virtual void OnDoubleClick() {}