diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 02:34:09 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-24 02:34:09 +0000 |
commit | 7c774a1528e5f289c49fb7614f376067e37ba4b0 (patch) | |
tree | 46cbb04a16895b13e18b19c8dbef69021bda9084 /chrome/common/platform_util_linux.cc | |
parent | 0ac41f8a150b37c05c0a11197739903e0edaa5d5 (diff) | |
download | chromium_src-7c774a1528e5f289c49fb7614f376067e37ba4b0.zip chromium_src-7c774a1528e5f289c49fb7614f376067e37ba4b0.tar.gz chromium_src-7c774a1528e5f289c49fb7614f376067e37ba4b0.tar.bz2 |
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
Diffstat (limited to 'chrome/common/platform_util_linux.cc')
-rw-r--r-- | chrome/common/platform_util_linux.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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); |