OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_editor_gtk.h" | 5 #include "chrome/browser/gtk/bookmark_editor_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
| 9 #include "app/gfx/gtk_util.h" |
9 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
11 #include "base/gfx/gtk_util.h" | |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "chrome/browser/gtk/bookmark_tree_model.h" | 14 #include "chrome/browser/gtk/bookmark_tree_model.h" |
15 #include "chrome/browser/gtk/bookmark_utils_gtk.h" | 15 #include "chrome/browser/gtk/bookmark_utils_gtk.h" |
16 #include "chrome/browser/gtk/gtk_theme_provider.h" | 16 #include "chrome/browser/gtk/gtk_theme_provider.h" |
17 #include "chrome/browser/bookmarks/bookmark_model.h" | 17 #include "chrome/browser/bookmarks/bookmark_model.h" |
18 #include "chrome/browser/bookmarks/bookmark_utils.h" | 18 #include "chrome/browser/bookmarks/bookmark_utils.h" |
19 #include "chrome/browser/history/history.h" | 19 #include "chrome/browser/history/history.h" |
20 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profile.h" |
21 #include "chrome/browser/net/url_fixer_upper.h" | 21 #include "chrome/browser/net/url_fixer_upper.h" |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 GTK_TREE_MODEL(dialog->tree_store_), &new_item_iter); | 395 GTK_TREE_MODEL(dialog->tree_store_), &new_item_iter); |
396 gtk_tree_view_expand_to_path(GTK_TREE_VIEW(dialog->tree_view_), path); | 396 gtk_tree_view_expand_to_path(GTK_TREE_VIEW(dialog->tree_view_), path); |
397 | 397 |
398 // Make the folder name editable. | 398 // Make the folder name editable. |
399 gtk_tree_view_set_cursor(GTK_TREE_VIEW(dialog->tree_view_), path, | 399 gtk_tree_view_set_cursor(GTK_TREE_VIEW(dialog->tree_view_), path, |
400 gtk_tree_view_get_column(GTK_TREE_VIEW(dialog->tree_view_), 0), | 400 gtk_tree_view_get_column(GTK_TREE_VIEW(dialog->tree_view_), 0), |
401 TRUE); | 401 TRUE); |
402 | 402 |
403 gtk_tree_path_free(path); | 403 gtk_tree_path_free(path); |
404 } | 404 } |
OLD | NEW |