Top | ![]() |
![]() |
![]() |
![]() |
WebKitWebHistoryItemWebKitWebHistoryItem — One item of the WebKitWebBackForwardList and or global history |
gchar * | alternate-title | Read / Write |
gdouble | last-visited-time | Read |
gchar * | original-uri | Read |
gchar * | title | Read |
gchar * | uri | Read |
A history item consists out of a title and a uri. It can be part of the WebKitWebBackForwardList and the global history. The global history is used for coloring the links of visited sites. WebKitWebHistoryItem's constructed with webkit_web_history_item_new and webkit_web_history_item_new_with_data are automatically added to the global history.
1 2 3 |
/* Inject a visited page into the global history */ webkit_web_history_item_new_with_data("http://www.gnome.org/", "GNOME: The Free Software Desktop Project"); webkit_web_history_item_new_with_data("http://www.webkit.org/", "The WebKit Open Source Project"); |
WebKitWebHistoryItem *
webkit_web_history_item_copy (WebKitWebHistoryItem *web_history_item
);
Makes a copy of the item for use with other WebView objects.
Since 1.1.18
const gchar *
webkit_web_history_item_get_alternate_title
(WebKitWebHistoryItem *web_history_item
);
Returns the alternate title of web_history_item
gdouble
webkit_web_history_item_get_last_visited_time
(WebKitWebHistoryItem *web_history_item
);
const gchar *
webkit_web_history_item_get_original_uri
(WebKitWebHistoryItem *web_history_item
);
Returns the original URI of web_history_item
.
const gchar *
webkit_web_history_item_get_title (WebKitWebHistoryItem *web_history_item
);
const gchar *
webkit_web_history_item_get_uri (WebKitWebHistoryItem *web_history_item
);
Returns the URI of this
WebKitWebHistoryItem *
webkit_web_history_item_new (void
);
Creates a new WebKitWebHistoryItem instance
WebKitWebHistoryItem * webkit_web_history_item_new_with_data (const gchar *uri
,const gchar *title
);
Creates a new WebKitWebHistoryItem with the given URI and title
void webkit_web_history_item_set_alternate_title (WebKitWebHistoryItem *web_history_item
,const gchar *title
);
Sets an alternate title for web_history_item
“alternate-title”
property“alternate-title” gchar *
The alternate title of the history item.
Flags: Read / Write
Default value: NULL
Since 1.0.2
“last-visited-time”
property“last-visited-time” gdouble
The time at which the history item was last visited.
Flags: Read
Allowed values: >= 0
Default value: 0
Since 1.0.2
“original-uri”
property“original-uri” gchar *
The original URI of the history item.
Flags: Read
Default value: NULL
Since 1.0.2
“title”
property“title” gchar *
The title of the history item.
Flags: Read
Default value: NULL
Since 1.0.2
“uri”
property“uri” gchar *
The URI of the history item.
Flags: Read
Default value: NULL
Since 1.0.2