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

Side by Side Diff: chrome/browser/ui/gtk/options/general_page_gtk.cc

Issue 6291003: Revert 71485 - Remove wstring from TemplateURL and friends.... (Closed) Base URL: svn://svn.chromium.org/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) 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/gtk/options/general_page_gtk.h" 5 #include "chrome/browser/gtk/options/general_page_gtk.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 for (size_t i = 0; i < model_urls.size(); ++i) { 679 for (size_t i = 0; i < model_urls.size(); ++i) {
680 if (!model_urls[i]->ShowInDefaultList()) 680 if (!model_urls[i]->ShowInDefaultList())
681 continue; 681 continue;
682 populated = true; 682 populated = true;
683 GtkTreeIter iter; 683 GtkTreeIter iter;
684 gtk_list_store_append(default_search_engines_model_, &iter); 684 gtk_list_store_append(default_search_engines_model_, &iter);
685 gtk_list_store_set( 685 gtk_list_store_set(
686 default_search_engines_model_, &iter, 686 default_search_engines_model_, &iter,
687 SEARCH_ENGINES_COL_INDEX, i, 687 SEARCH_ENGINES_COL_INDEX, i,
688 SEARCH_ENGINES_COL_TITLE, 688 SEARCH_ENGINES_COL_TITLE,
689 UTF16ToUTF8(model_urls[i]->short_name()).c_str(), 689 WideToUTF8(model_urls[i]->short_name()).c_str(),
690 -1); 690 -1);
691 if (model_urls[i] == default_search_provider) { 691 if (model_urls[i] == default_search_provider) {
692 gtk_combo_box_set_active_iter( 692 gtk_combo_box_set_active_iter(
693 GTK_COMBO_BOX(default_search_engine_combobox_), &iter); 693 GTK_COMBO_BOX(default_search_engine_combobox_), &iter);
694 } 694 }
695 } 695 }
696 EnableDefaultSearchEngineComboBox(populated && 696 EnableDefaultSearchEngineComboBox(populated &&
697 !template_url_model_->is_default_search_managed()); 697 !template_url_model_->is_default_search_managed());
698 default_search_initializing_ = false; 698 default_search_initializing_ = false;
699 } 699 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 int desired_width = allocation->x - sender->parent->allocation.x; 796 int desired_width = allocation->x - sender->parent->allocation.x;
797 GtkRequisition req; 797 GtkRequisition req;
798 gtk_widget_size_request(instant_indent_, &req); 798 gtk_widget_size_request(instant_indent_, &req);
799 if (req.width != desired_width) 799 if (req.width != desired_width)
800 gtk_widget_set_size_request(instant_indent_, desired_width, -1); 800 gtk_widget_set_size_request(instant_indent_, desired_width, -1);
801 } 801 }
802 802
803 void GeneralPageGtk::OnSearchLearnMoreClicked(GtkWidget* sender) { 803 void GeneralPageGtk::OnSearchLearnMoreClicked(GtkWidget* sender) {
804 browser::ShowOptionsURL(profile(), browser::InstantLearnMoreURL()); 804 browser::ShowOptionsURL(profile(), browser::InstantLearnMoreURL());
805 } 805 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/omnibox/location_bar_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698