diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-16 07:25:26 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-16 07:25:26 +0000 |
commit | a9c34625781f0db43216cc333e1922cfb6d7958c (patch) | |
tree | 27f2bf37b54b9a66f0287d84aad32b79eaf3790f /chrome/renderer | |
parent | 8423e73ea1c929c17ad2fbdc4c775b0fb63c9224 (diff) | |
download | chromium_src-a9c34625781f0db43216cc333e1922cfb6d7958c.zip chromium_src-a9c34625781f0db43216cc333e1922cfb6d7958c.tar.gz chromium_src-a9c34625781f0db43216cc333e1922cfb6d7958c.tar.bz2 |
gtk_message_dialog_new expects a format string already.
Review URL: http://codereview.chromium.org/21388
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/renderer_main.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc index 13016f1..c376486 100644 --- a/chrome/renderer/renderer_main.cc +++ b/chrome/renderer/renderer_main.cc @@ -48,10 +48,10 @@ static void HandleRendererErrorTestParameters(const CommandLine& command_line) { MB_OK | MB_SETFOREGROUND); #elif defined(OS_LINUX) // TODO(port): create an abstraction layer for dialog boxes and use it here. - std::string text = StringPrintf("attach to me at pid %d", getpid()); GtkWidget* dialog = gtk_message_dialog_new( - NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, text.c_str()); - gtk_window_set_title(GTK_WINDOW(dialog), "renderer starting..."); + NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, + "Attach to renderer at pid %d.", getpid()); + gtk_window_set_title(GTK_WINDOW(dialog), "Renderer starting..."); gtk_dialog_run(GTK_DIALOG(dialog)); // Runs a nested message loop. gtk_widget_destroy(dialog); #elif defined(OS_MACOSX) |