[Webkit-unassigned] [Bug 49966] New: gtk favicon
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 23 04:29:05 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=49966
Summary: gtk favicon
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Gtk
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: object.lin at gmail.com
Created an attachment (id=74641)
--> (https://bugs.webkit.org/attachment.cgi?id=74641&action=review)
favicon api for gtk webivew
## add to WebKit-r68242/WebKit/gtk/webkit/webkitwebview.h
WEBKIT_API GdkPixbuf *
webkit_web_view_get_icon (WebKitWebView *webView);
## add to WebKit-r68242/WebKit/gtk/webkit/webkitwebview.cpp
GdkPixbuf * webkit_web_view_get_icon(WebKitWebView* webView)
{
g_return_val_if_fail(WEBKIT_IS_WEB_VIEW(webView), 0);
String PageURL = core(webView)->mainFrame()->loader()->url().prettyURL();
Image * icon;
icon = iconDatabase()->iconForPageURL(PageURL, IntSize(16,16));
if (! icon->isNull() ){
return icon->getGdkPixbuf();
}else{
icon = iconDatabase()->defaultIcon(IntSize(16,16));
if (icon->isNull())
return NULL;
return icon->getGdkPixbuf();
}
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list