![]() |
![]() |
![]() |
WebKitGTK+ Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
WebKitIconDatabase; void webkit_icon_database_clear (WebKitIconDatabase *database
); GdkPixbuf * webkit_icon_database_get_icon_pixbuf (WebKitIconDatabase *database
,const gchar *page_uri
); gchar * webkit_icon_database_get_icon_uri (WebKitIconDatabase *database
,const gchar *page_uri
); const gchar * webkit_icon_database_get_path (WebKitIconDatabase *database
); GType webkit_icon_database_get_type (void
); void webkit_icon_database_set_path (WebKitIconDatabase *database
,const gchar *path
);
void webkit_icon_database_clear (WebKitIconDatabase *database
);
webkit_icon_database_clear
has been deprecated since version 1.8 and should not be used in newly-written code. Use webkit_favicon_database_clear()
instead.
Clears all icons from the database.
|
a WebKitIconDatabase |
Since 1.3.13
GdkPixbuf * webkit_icon_database_get_icon_pixbuf (WebKitIconDatabase *database
,const gchar *page_uri
);
webkit_icon_database_get_icon_pixbuf
has been deprecated since version 1.8 and should not be used in newly-written code. Use webkit_favicon_database_try_get_favicon_pixbuf()
instead.
Obtains a GdkPixbuf of the favicon for the given page URI, or
a default icon if there is no icon for the given page. Use
webkit_icon_database_get_icon_uri()
if you need to distinguish these cases.
Usually you want to connect to WebKitIconDatabase::icon-loaded and call this
method in the callback.
The pixbuf will have the largest size provided by the server and should
be resized before it is displayed.
See also webkit_web_view_get_icon_pixbuf()
.
|
a WebKitIconDatabase |
|
URI of the page containing the icon |
Returns : |
a new reference to a GdkPixbuf, or NULL . [transfer full]
|
Since 1.3.13
gchar * webkit_icon_database_get_icon_uri (WebKitIconDatabase *database
,const gchar *page_uri
);
webkit_icon_database_get_icon_uri
has been deprecated since version 1.8 and should not be used in newly-written code. Use webkit_favicon_database_get_favicon_uri()
instead.
Obtains the URI for the favicon for the given page URI.
See also webkit_web_view_get_icon_uri()
.
|
a WebKitIconDatabase |
|
URI of the page containing the icon |
Returns : |
a newly allocated URI for the favicon, or NULL
|
Since 1.3.13
const gchar * webkit_icon_database_get_path (WebKitIconDatabase *database
);
webkit_icon_database_get_path
has been deprecated since version 1.8 and should not be used in newly-written code. Use webkit_favicon_database_get_path()
instead.
Determines the absolute path to the database folder on disk.
|
a WebKitIconDatabase |
Returns : |
the absolute path of the database folder, or NULL
|
Since 1.3.13
void webkit_icon_database_set_path (WebKitIconDatabase *database
,const gchar *path
);
webkit_icon_database_set_path
has been deprecated since version 1.8 and should not be used in newly-written code. Use webkit_favicon_database_set_path()
instead.
Specifies the absolute path to the database folder on disk.
Passing NULL
or "" disables the icon database.
|
a WebKitIconDatabase |
|
an absolute path to the icon database folder |
Since 1.3.13
"path"
property"path" gchar* : Read / Write
WebKitIconDatabase:path
has been deprecated since version 1.8 and should not be used in newly-written code. Use WebKitFaviconDatabase::path instead.
The absolute path of the icon database folder.
Default value: NULL
Since 1.3.13
"icon-loaded"
signalvoid user_function (WebKitIconDatabase *database,
WebKitWebFrame *frame,
gchar *frame_uri,
gpointer user_data) : Run Last
WebKitIconDatabase::icon-loaded
has been deprecated since version 1.8 and should not be used in newly-written code. Use WebKitFaviconDatabase::icon-loaded instead.
This signal is emitted when a favicon is available for a page, or a child frame. See WebKitWebView::icon-loaded if you only need the favicon for the main frame of a particular WebKitWebView.
|
the object on which the signal is emitted |
|
the frame containing the icon |
|
the URI of the frame containing the icon |
|
user data set when the signal handler was connected. |
Since 1.3.13