OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bookmark_bubble_gtk.h" | 5 #include "chrome/browser/gtk/bookmark_bubble_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 // We always have nodes + 1 entries in the combo. The last entry will be | 337 // We always have nodes + 1 entries in the combo. The last entry will be |
338 // the 'Select another folder...' entry that opens the bookmark editor. | 338 // the 'Select another folder...' entry that opens the bookmark editor. |
339 for (int i = 0; i < folder_combo_model_->GetItemCount(); ++i) { | 339 for (int i = 0; i < folder_combo_model_->GetItemCount(); ++i) { |
340 gtk_combo_box_append_text(GTK_COMBO_BOX(folder_combo_), | 340 gtk_combo_box_append_text(GTK_COMBO_BOX(folder_combo_), |
341 UTF16ToUTF8(folder_combo_model_->GetItemAt(i)).c_str()); | 341 UTF16ToUTF8(folder_combo_model_->GetItemAt(i)).c_str()); |
342 } | 342 } |
343 | 343 |
344 gtk_combo_box_set_active(GTK_COMBO_BOX(folder_combo_), | 344 gtk_combo_box_set_active(GTK_COMBO_BOX(folder_combo_), |
345 folder_combo_model_->node_parent_index()); | 345 folder_combo_model_->node_parent_index()); |
346 } | 346 } |
OLD | NEW |