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/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 #include <wchar.h> | 8 #include <wchar.h> |
9 | 9 |
| 10 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
11 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
12 #include "base/gfx/gtk_util.h" | 13 #include "base/gfx/gtk_util.h" |
13 #include "chrome/common/l10n_util.h" | |
14 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
16 #include "grit/chromium_strings.h" | 16 #include "grit/chromium_strings.h" |
17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
18 #include "grit/locale_settings.h" | 18 #include "grit/locale_settings.h" |
19 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
20 #include "webkit/glue/webkit_glue.h" | 20 #include "webkit/glue/webkit_glue.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 // The pixel width of the version text field. Ideally, we'd like to have the | 23 // The pixel width of the version text field. Ideally, we'd like to have the |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 // Hack around Gtk's not-so-good label wrapping, as described here: | 160 // Hack around Gtk's not-so-good label wrapping, as described here: |
161 // http://blog.16software.com/dynamic-label-wrapping-in-gtk | 161 // http://blog.16software.com/dynamic-label-wrapping-in-gtk |
162 g_signal_connect(G_OBJECT(license_label), "size-allocate", | 162 g_signal_connect(G_OBJECT(license_label), "size-allocate", |
163 G_CALLBACK(FixLabelWrappingCallback), NULL); | 163 G_CALLBACK(FixLabelWrappingCallback), NULL); |
164 | 164 |
165 g_signal_connect(dialog, "response", G_CALLBACK(OnDialogResponse), NULL); | 165 g_signal_connect(dialog, "response", G_CALLBACK(OnDialogResponse), NULL); |
166 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); | 166 gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); |
167 gtk_widget_show_all(dialog); | 167 gtk_widget_show_all(dialog); |
168 } | 168 } |
OLD | NEW |