Re: API to get some properties of bookmarks



Hi

El dom, 24-07-2011 a las 12:21 +0300, Maitrey Mishra escribió:
> 
> But it prints me -1 .
> How can I get the value of contentCreated and time last modified?
> I also saw that ~/.gnome2/ephy-history.xml does have the first visit
> and last visit time in epoch seconds.
> Am I using the wrong macros to retrieve the value?
> 

If you see ~/.gnome2/ephy-bookmarks.xml you'll notice that they don't
have a time property. In your code you are asking for a property that is
only present in ephy-history nodes (from ephy-history.xml).

There's work going on to unify the history and bookmarks backend, I know
Claudio has pushed a branch to http://git.gnome.org/epiphany

So, no, you can't get any time related property from bookmark nodes. You
could query the history nodes for one that matches your bookmark and
sniff the last-visit from there. It would be a bit more work but it
would work.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]