summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-11 23:50:46 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-11 23:50:46 +0000
commite992f404a684f1bc95ac46208385663e9e3b3847 (patch)
treeadf601846a7ee9618d4840dc0ae91bbab07c6e50
parent11cf4988764ae6218f2e54170cef93541e03103e (diff)
downloadchromium_src-e992f404a684f1bc95ac46208385663e9e3b3847.zip
chromium_src-e992f404a684f1bc95ac46208385663e9e3b3847.tar.gz
chromium_src-e992f404a684f1bc95ac46208385663e9e3b3847.tar.bz2
views: Implement NativeTableGtk::GetColumnWidth method.
BUG=None TEST=export GYP_DEFINES="toolkit_views" && gclient runhooks && make -j4 -k views_examples out/Debug/views_examples Go to the table tab. Click on one of the checkboxes, you shouldn't see an ERROR for this method. Review URL: http://codereview.chromium.org/6175002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71106 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--views/controls/table/native_table_gtk.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/controls/table/native_table_gtk.cc b/views/controls/table/native_table_gtk.cc
index fb12ef4..0200c1b 100644
--- a/views/controls/table/native_table_gtk.cc
+++ b/views/controls/table/native_table_gtk.cc
@@ -74,8 +74,9 @@ void NativeTableGtk::RemoveColumn(int index) {
}
int NativeTableGtk::GetColumnWidth(int column_index) const {
- NOTIMPLEMENTED();
- return -1;
+ GtkTreeViewColumn* column = gtk_tree_view_get_column(tree_view_,
+ column_index);
+ return gtk_tree_view_column_get_width(column);
}
void NativeTableGtk::SetColumnWidth(int column_index, int width) {