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

Side by Side Diff: chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc

Issue 8372038: gtk/bookmarks: Update the label of some dialog buttons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BUTTON_TYPE_ and TODOs Created 9 years, 1 month 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) 2011 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/ui/gtk/bookmarks/bookmark_editor_gtk.h" 5 #include "chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 void BookmarkEditorGtk::Init(GtkWindow* parent_window) { 296 void BookmarkEditorGtk::Init(GtkWindow* parent_window) {
297 bb_model_ = profile_->GetBookmarkModel(); 297 bb_model_ = profile_->GetBookmarkModel();
298 DCHECK(bb_model_); 298 DCHECK(bb_model_);
299 bb_model_->AddObserver(this); 299 bb_model_->AddObserver(this);
300 300
301 dialog_ = gtk_dialog_new_with_buttons( 301 dialog_ = gtk_dialog_new_with_buttons(
302 l10n_util::GetStringUTF8(IDS_BOOKMARK_EDITOR_TITLE).c_str(), 302 l10n_util::GetStringUTF8(IDS_BOOKMARK_EDITOR_TITLE).c_str(),
303 parent_window, 303 parent_window,
304 GTK_DIALOG_MODAL, 304 GTK_DIALOG_MODAL,
305 GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, 305 GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
306 GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, 306 GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
307 NULL); 307 NULL);
308 gtk_dialog_set_has_separator(GTK_DIALOG(dialog_), FALSE); 308 gtk_dialog_set_has_separator(GTK_DIALOG(dialog_), FALSE);
309 309
310 if (show_tree_) { 310 if (show_tree_) {
311 GtkWidget* action_area = GTK_DIALOG(dialog_)->action_area; 311 GtkWidget* action_area = GTK_DIALOG(dialog_)->action_area;
312 new_folder_button_ = gtk_button_new_with_label( 312 new_folder_button_ = gtk_button_new_with_label(
313 l10n_util::GetStringUTF8( 313 l10n_util::GetStringUTF8(
314 IDS_BOOKMARK_EDITOR_NEW_FOLDER_BUTTON).c_str()); 314 IDS_BOOKMARK_EDITOR_NEW_FOLDER_BUTTON).c_str());
315 g_signal_connect(new_folder_button_, "clicked", 315 g_signal_connect(new_folder_button_, "clicked",
316 G_CALLBACK(OnNewFolderClickedThunk), this); 316 G_CALLBACK(OnNewFolderClickedThunk), this);
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 GTK_TREE_MODEL(tree_store_), &new_item_iter); 681 GTK_TREE_MODEL(tree_store_), &new_item_iter);
682 gtk_tree_view_expand_to_path(GTK_TREE_VIEW(tree_view_), path); 682 gtk_tree_view_expand_to_path(GTK_TREE_VIEW(tree_view_), path);
683 683
684 // Make the folder name editable. 684 // Make the folder name editable.
685 gtk_tree_view_set_cursor(GTK_TREE_VIEW(tree_view_), path, 685 gtk_tree_view_set_cursor(GTK_TREE_VIEW(tree_view_), path,
686 gtk_tree_view_get_column(GTK_TREE_VIEW(tree_view_), 0), 686 gtk_tree_view_get_column(GTK_TREE_VIEW(tree_view_), 0),
687 TRUE); 687 TRUE);
688 688
689 gtk_tree_path_free(path); 689 gtk_tree_path_free(path);
690 } 690 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_folder_editor_controller.cc ('k') | chrome/browser/ui/input_window_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698