OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |