Print bookmarks itself
- From: Maitrey Mishra <maitreymishra23 gmail com>
- To: epiphany-list gnome org
- Subject: Print bookmarks itself
- Date: Wed, 13 Jul 2011 17:13:29 +0300
Hi,
I am a beginner writing an extension for epiphany.
My code is as below:
static void
impl_attach_window (EphyExtension *ext,
EphyWindow *window)
{
EphyBookmarks *bookmarks;
EphyNode *smart_bmks, *bmk;
GPtrArray *children;
guint id;
int i;
bookmarks = ephy_shell_get_bookmarks (ephy_shell_get_default ());
smart_bmks = ephy_bookmarks_get_bookmarks (bookmarks);
if (smart_bmks != NULL) {
children = ephy_node_get_children (smart_bmks);
for (i=0; i < children->len; i++)
{
bmk = g_ptr_array_index (children, i);
LOG ("i value is :%d", i);
id = ephy_node_get_id (bmk);
LOG ("the id is %d", id);
}
}
}
I use ephy_node_get_id to get the id of the bookmarks.
How to print the bookmarks itself?
Thanks and Best Regards,
Maitrey
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]