Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: views/controls/table/native_table_gtk.cc

Issue 6175002: views: Implement NativeTableGtk::GetColumnWidth method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/table/native_table_gtk.cc
diff --git a/views/controls/table/native_table_gtk.cc b/views/controls/table/native_table_gtk.cc
index fb12ef48afef38f0690886eb360f31d98200af17..0200c1be64cbaf49359fdd685ec2212e6d467ac7 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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698