| 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/browser_window_gtk.h" | 5 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 #include <X11/XF86keysym.h> | 8 #include <X11/XF86keysym.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 TabContents* tab_contents) { | 1148 TabContents* tab_contents) { |
| 1149 new RepostFormWarningGtk(GetNativeHandle(), &tab_contents->controller()); | 1149 new RepostFormWarningGtk(GetNativeHandle(), &tab_contents->controller()); |
| 1150 } | 1150 } |
| 1151 | 1151 |
| 1152 void BrowserWindowGtk::ShowProfileErrorDialog(int message_id) { | 1152 void BrowserWindowGtk::ShowProfileErrorDialog(int message_id) { |
| 1153 std::string title = l10n_util::GetStringUTF8(IDS_PRODUCT_NAME); | 1153 std::string title = l10n_util::GetStringUTF8(IDS_PRODUCT_NAME); |
| 1154 std::string message = l10n_util::GetStringUTF8(message_id); | 1154 std::string message = l10n_util::GetStringUTF8(message_id); |
| 1155 GtkWidget* dialog = gtk_message_dialog_new(window_, | 1155 GtkWidget* dialog = gtk_message_dialog_new(window_, |
| 1156 static_cast<GtkDialogFlags>(0), GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, | 1156 static_cast<GtkDialogFlags>(0), GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, |
| 1157 "%s", message.c_str()); | 1157 "%s", message.c_str()); |
| 1158 gtk_util::ApplyMessageDialogQuirks(dialog); |
| 1158 gtk_window_set_title(GTK_WINDOW(dialog), title.c_str()); | 1159 gtk_window_set_title(GTK_WINDOW(dialog), title.c_str()); |
| 1159 g_signal_connect(dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL); | 1160 g_signal_connect(dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL); |
| 1160 gtk_widget_show_all(dialog); | 1161 gtk_widget_show_all(dialog); |
| 1161 } | 1162 } |
| 1162 | 1163 |
| 1163 void BrowserWindowGtk::ShowThemeInstallBubble() { | 1164 void BrowserWindowGtk::ShowThemeInstallBubble() { |
| 1164 ThemeInstallBubbleViewGtk::Show(window_); | 1165 ThemeInstallBubbleViewGtk::Show(window_); |
| 1165 } | 1166 } |
| 1166 | 1167 |
| 1167 void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, | 1168 void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, |
| (...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2360 // are taken from the WMs' source code. | 2361 // are taken from the WMs' source code. |
| 2361 return (wm_name == "Blackbox" || | 2362 return (wm_name == "Blackbox" || |
| 2362 wm_name == "compiz" || | 2363 wm_name == "compiz" || |
| 2363 wm_name == "e16" || // Enlightenment DR16 | 2364 wm_name == "e16" || // Enlightenment DR16 |
| 2364 wm_name == "KWin" || | 2365 wm_name == "KWin" || |
| 2365 wm_name == "Metacity" || | 2366 wm_name == "Metacity" || |
| 2366 wm_name == "Mutter" || | 2367 wm_name == "Mutter" || |
| 2367 wm_name == "Openbox" || | 2368 wm_name == "Openbox" || |
| 2368 wm_name == "Xfwm4"); | 2369 wm_name == "Xfwm4"); |
| 2369 } | 2370 } |
| OLD | NEW |