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

Side by Side Diff: chrome/browser/gtk/gtk_tree.cc

Issue 6044007: Remove wstring from TableModel.... (Closed) Base URL: svn://chrome-svn/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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/gtk/gtk_tree.h" 5 #include "chrome/browser/gtk/gtk_tree.h"
6 6
7 #include "app/table_model.h" 7 #include "app/table_model.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/gtk/gtk_theme_provider.h" 10 #include "chrome/browser/gtk/gtk_theme_provider.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 213 }
214 // Group title. 214 // Group title.
215 gtk_list_store_append(list_store_, &iter); 215 gtk_list_store_append(list_store_, &iter);
216 gtk_list_store_set(list_store_, 216 gtk_list_store_set(list_store_,
217 &iter, 217 &iter,
218 COL_WEIGHT, 218 COL_WEIGHT,
219 PANGO_WEIGHT_BOLD, 219 PANGO_WEIGHT_BOLD,
220 COL_WEIGHT_SET, 220 COL_WEIGHT_SET,
221 TRUE, 221 TRUE,
222 COL_TITLE, 222 COL_TITLE,
223 WideToUTF8(it->title).c_str(), 223 UTF16ToUTF8(it->title).c_str(),
224 COL_IS_HEADER, 224 COL_IS_HEADER,
225 TRUE, 225 TRUE,
226 -1); 226 -1);
227 // Group separator. 227 // Group separator.
228 gtk_list_store_append(list_store_, &iter); 228 gtk_list_store_append(list_store_, &iter);
229 gtk_list_store_set(list_store_, 229 gtk_list_store_set(list_store_,
230 &iter, 230 &iter,
231 COL_IS_HEADER, 231 COL_IS_HEADER,
232 TRUE, 232 TRUE,
233 COL_IS_SEPARATOR, 233 COL_IS_SEPARATOR,
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 464
465 void TreeAdapter::TreeNodeChanged(TreeModel* model, TreeModelNode* node) { 465 void TreeAdapter::TreeNodeChanged(TreeModel* model, TreeModelNode* node) {
466 delegate_->OnAnyModelUpdateStart(); 466 delegate_->OnAnyModelUpdateStart();
467 GtkTreeIter iter; 467 GtkTreeIter iter;
468 if (GetTreeIter(node, &iter)) 468 if (GetTreeIter(node, &iter))
469 FillRow(&iter, node); 469 FillRow(&iter, node);
470 delegate_->OnAnyModelUpdate(); 470 delegate_->OnAnyModelUpdate();
471 } 471 }
472 472
473 } // namespace gtk_tree 473 } // namespace gtk_tree
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698