Commit dfaef8ed authored by zecke@webkit.org's avatar zecke@webkit.org

[GTK] Implement WebCore::imageTitle

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 06f236cb
2009-05-05 Holger Hans Peter Freyther <zecke@selfish.org>
Reviewed by Xan Lopez.
Implement WebCore::imageTitle for Gtk+.
* platform/gtk/LocalizedStringsGtk.cpp:
(WebCore::imageTitle):
2009-05-05 Oliver Hunt <oliver@apple.com>
Reviewed by Gavin Barraclough.
......@@ -30,6 +30,9 @@
#include "config.h"
#include "LocalizedStrings.h"
#include "CString.h"
#include "GOwnPtr.h"
#include "IntSize.h"
#include "NotImplemented.h"
#include "PlatformString.h"
......@@ -335,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());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment