From 7c774a1528e5f289c49fb7614f376067e37ba4b0 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Tue, 24 Nov 2009 02:34:09 +0000 Subject: Linux: Create app modal dialogs in a different way to work around a KDE 3 window manager bug. While we're at it, change dialog's default size to match that of Chrome on Windows. BUG=28230 TEST=see bug Review URL: http://codereview.chromium.org/425016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32905 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/platform_util_linux.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/common/platform_util_linux.cc') diff --git a/chrome/common/platform_util_linux.cc b/chrome/common/platform_util_linux.cc index 6a3415d..9f0e346 100644 --- a/chrome/common/platform_util_linux.cc +++ b/chrome/common/platform_util_linux.cc @@ -9,6 +9,7 @@ #include "base/file_util.h" #include "base/process_util.h" #include "base/string_util.h" +#include "chrome/common/gtk_util.h" #include "chrome/common/process_watcher.h" #include "googleurl/src/gurl.h" @@ -80,6 +81,7 @@ void SimpleErrorBox(gfx::NativeWindow parent, const string16& message) { GtkWidget* dialog = gtk_message_dialog_new(parent, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", UTF16ToUTF8(message).c_str()); + gtk_util::ApplyMessageDialogQuirks(dialog); gtk_window_set_title(GTK_WINDOW(dialog), UTF16ToUTF8(title).c_str()); g_signal_connect(dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL); gtk_widget_show_all(dialog); -- cgit v1.1