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/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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 void GeneralPageGtk::OnInstantLabelSizeAllocate(GtkWidget* sender, | 796 void GeneralPageGtk::OnInstantLabelSizeAllocate(GtkWidget* sender, |
797 GtkAllocation* allocation) { | 797 GtkAllocation* allocation) { |
798 int desired_width = allocation->x - sender->parent->allocation.x; | 798 int desired_width = allocation->x - sender->parent->allocation.x; |
799 GtkRequisition req; | 799 GtkRequisition req; |
800 gtk_widget_size_request(instant_indent_, &req); | 800 gtk_widget_size_request(instant_indent_, &req); |
801 if (req.width != desired_width) | 801 if (req.width != desired_width) |
802 gtk_widget_set_size_request(instant_indent_, desired_width, -1); | 802 gtk_widget_set_size_request(instant_indent_, desired_width, -1); |
803 } | 803 } |
804 | 804 |
805 void GeneralPageGtk::OnSearchLearnMoreClicked(GtkWidget* sender) { | 805 void GeneralPageGtk::OnSearchLearnMoreClicked(GtkWidget* sender) { |
806 browser::ShowOptionsURL(profile(), GURL(browser::kInstantLearnMoreURL)); | 806 browser::ShowOptionsURL(profile(), browser::InstantLearnMoreURL()); |
807 } | 807 } |
OLD | NEW |