summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/gtk/LocalizedStringsGtk.cpp
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-06-18 18:20:56 -0700
committerFeng Qian <fqian@google.com>2009-06-18 18:20:56 -0700
commit1edef79f87f9c52c21d69c87c19f8e2b140a9119 (patch)
treecad337ef493b0d9710bf3ae478cb87cb534f598d /WebCore/platform/gtk/LocalizedStringsGtk.cpp
parentb83fc086000e27bc227580bd0e35b9d7bee1179a (diff)
parentc9c4d65c1547996ed3748026904d6e7f09aec2b4 (diff)
downloadexternal_webkit-1edef79f87f9c52c21d69c87c19f8e2b140a9119.zip
external_webkit-1edef79f87f9c52c21d69c87c19f8e2b140a9119.tar.gz
external_webkit-1edef79f87f9c52c21d69c87c19f8e2b140a9119.tar.bz2
Merge commit 'goog/master-webkit-merge' into webkit-merge-44544
Diffstat (limited to 'WebCore/platform/gtk/LocalizedStringsGtk.cpp')
-rw-r--r--WebCore/platform/gtk/LocalizedStringsGtk.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/WebCore/platform/gtk/LocalizedStringsGtk.cpp b/WebCore/platform/gtk/LocalizedStringsGtk.cpp
index 52d4f5f..70e3aff 100644
--- a/WebCore/platform/gtk/LocalizedStringsGtk.cpp
+++ b/WebCore/platform/gtk/LocalizedStringsGtk.cpp
@@ -30,11 +30,14 @@
#include "config.h"
#include "LocalizedStrings.h"
+#include "CString.h"
+#include "GOwnPtr.h"
+#include "IntSize.h"
#include "NotImplemented.h"
#include "PlatformString.h"
+#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
-#include <glib/gi18n.h>
namespace WebCore {
@@ -125,11 +128,7 @@ String contextMenuItemTagDelete()
String contextMenuItemTagSelectAll()
{
-#if GTK_CHECK_VERSION(2,10,0)
static String stockLabel = String::fromUTF8(gtkStockLabel(GTK_STOCK_SELECT_ALL));
-#else
- static String stockLabel = String::fromUTF8(_("Select _All"));
-#endif
return stockLabel;
}
@@ -339,8 +338,11 @@ String unknownFileSizeText()
String imageTitle(const String& filename, const IntSize& size)
{
- notImplemented();
- return String();
+ GOwnPtr<gchar> string(g_strdup_printf(C_("Title string for images", "%s (%dx%d pixels)"),
+ filename.utf8().data(),
+ size.width(), size.height()));
+
+ return String::fromUTF8(string.get());
}
}