| 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/about_chrome_dialog.h" | 5 #include "chrome/browser/gtk/about_chrome_dialog.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "app/l10n_util.h" | 12 #include "app/l10n_util.h" |
| 13 #include "app/resource_bundle.h" | 13 #include "app/resource_bundle.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "chrome/browser/browser_list.h" | 15 #include "chrome/browser/browser_list.h" |
| 16 #include "chrome/browser/gtk/cairo_cached_surface.h" | 16 #include "chrome/browser/gtk/cairo_cached_surface.h" |
| 17 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | 17 #include "chrome/browser/gtk/gtk_chrome_link_button.h" |
| 18 #include "chrome/browser/gtk/gtk_theme_provider.h" | 18 #include "chrome/browser/gtk/gtk_theme_provider.h" |
| 19 #include "chrome/browser/gtk/gtk_util.h" | 19 #include "chrome/browser/gtk/gtk_util.h" |
| 20 #include "chrome/browser/platform_util.h" | 20 #include "chrome/browser/platform_util.h" |
| 21 #include "chrome/browser/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
| 22 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
| 23 #include "chrome/common/chrome_version_info.h" | 23 #include "chrome/common/chrome_version_info.h" |
| 24 #include "chrome/common/url_constants.h" | 24 #include "chrome/common/url_constants.h" |
| 25 #include "grit/chromium_strings.h" | 25 #include "grit/chromium_strings.h" |
| 26 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
| 27 #include "grit/locale_settings.h" | 27 #include "grit/locale_settings.h" |
| 28 #include "grit/theme_resources.h" | 28 #include "grit/theme_resources.h" |
| 29 #include "webkit/glue/webkit_glue.h" | 29 #include "webkit/glue/webkit_glue.h" |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 gtk_util::kContentAreaBorder, 0, | 282 gtk_util::kContentAreaBorder, 0, |
| 283 gtk_util::kContentAreaBorder, gtk_util::kContentAreaBorder); | 283 gtk_util::kContentAreaBorder, gtk_util::kContentAreaBorder); |
| 284 gtk_container_add(GTK_CONTAINER(alignment), vbox); | 284 gtk_container_add(GTK_CONTAINER(alignment), vbox); |
| 285 gtk_box_pack_start(GTK_BOX(content_area), alignment, FALSE, FALSE, 0); | 285 gtk_box_pack_start(GTK_BOX(content_area), alignment, FALSE, FALSE, 0); |
| 286 | 286 |
| 287 g_signal_connect(dialog, "response", G_CALLBACK(OnDialogResponse), NULL); | 287 g_signal_connect(dialog, "response", G_CALLBACK(OnDialogResponse), NULL); |
| 288 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); | 288 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); |
| 289 gtk_widget_show_all(dialog); | 289 gtk_widget_show_all(dialog); |
| 290 gtk_widget_grab_focus(close_button); | 290 gtk_widget_grab_focus(close_button); |
| 291 } | 291 } |
| OLD | NEW |