BookmarkFile.moveItem

Changes the URI of a bookmark item from @old_uri to @new_uri. Any existing bookmark for @new_uri will be overwritten. If @new_uri is %NULL, then the bookmark is removed.

In the event the URI cannot be found, %FALSE is returned and @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.

class BookmarkFile
bool
moveItem
(
string oldUri
,
string newUri
)

Parameters

oldUri string

a valid URI

newUri string

a valid URI, or %NULL

Return: %TRUE if the URI was successfully changed

Throws

GException on failure.

Meta

Since

2.12