[Gnome-zeitgeist] [Merge] lp:~cando/gnome-activity-journal/fix-pinning into lp:gnome-activity-journal

2010-11-24 Thread Stefano Candori
Stefano Candori has proposed merging 
lp:~cando/gnome-activity-journal/fix-pinning into lp:gnome-activity-journal.

Requested reviews:
  GNOME Zeitgeist Team (gnome-zeitgeist)
Related bugs:
  #680653 Pinning feature is broken
  https://bugs.launchpad.net/bugs/680653


In this branch I've fixed bug #680653.
-- 
https://code.launchpad.net/~cando/gnome-activity-journal/fix-pinning/+merge/41754
Your team GNOME Zeitgeist Team is requested to review the proposed merge of 
lp:~cando/gnome-activity-journal/fix-pinning into lp:gnome-activity-journal.
=== modified file 'src/activity_widgets.py'
--- src/activity_widgets.py	2010-11-11 16:43:36 +
+++ src/activity_widgets.py	2010-11-24 15:57:57 +
@@ -172,7 +172,7 @@
 self.day = day
 if pinbox in self.box.get_children():
 self.box.remove(pinbox)
-if (day.date - datetime.date.today()) == 0:
+if (day.date - datetime.date.today()) == datetime.timedelta(days=0):
 self.box.pack_start(pinbox, False, False)
 self.box.reorder_child(pinbox, 0)
 self.daylabel.set_date(day.date)
@@ -1254,6 +1254,8 @@
 self.event_templates, self.do_set,
 self.event_timerange,
 StorageState.Any, 1, ResultType.MostRecentSubjects)
+else:
+self.do_set([])
 
 def do_set(self, event_ids):
 objs = []

=== modified file 'src/supporting_widgets.py'
--- src/supporting_widgets.py	2010-11-09 20:25:08 +
+++ src/supporting_widgets.py	2010-11-24 15:57:57 +
@@ -917,7 +917,7 @@
 uri = obj.uri
 uri = unicode(uri)
 isbookmarked = bookmarker.is_bookmarked(uri)
-if isbookmarked:
+if isbookmarked:   
 bookmarker.unbookmark(uri)
 
 def do_delete(self, menuitem):

___
Mailing list: https://launchpad.net/~gnome-zeitgeist
Post to : gnome-zeitge...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~gnome-zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Gnome-zeitgeist] [Bug 680653] Re: Pinning feature is broken

2010-11-24 Thread Stefano Candori
** Branch linked: lp:~cando/gnome-activity-journal/fix-pinning

-- 
Pinning feature is broken
https://bugs.launchpad.net/bugs/680653
You received this bug notification because you are a member of GNOME
Zeitgeist Team, which is the registrant for GNOME Activity Journal.

Status in GNOME Activity Journal: In Progress

Bug description:
When i try to pin an item i get this error/warning and the item isn't pinned:

/home/cando/Scrivania/gnome-activity-journal/src/common.py:752: 
DeprecationWarning: object.__new__() takes no parameters
  GIO_FILES[subj] = object.__new__(classtype, *args, **kwargs)
/home/cando/Scrivania/gnome-activity-journal/src/activity_widgets.py:279: 
GtkWarning: gtk_box_pack: assertion `child->parent == NULL' failed
  self.pack_end(hbox)



___
Mailing list: https://launchpad.net/~gnome-zeitgeist
Post to : gnome-zeitge...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~gnome-zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Gnome-zeitgeist] [Merge] lp:~cando/gnome-activity-journal/dnd-pinning into lp:gnome-activity-journal

2010-11-25 Thread Stefano Candori
The proposal to merge lp:~cando/gnome-activity-journal/dnd-pinning into 
lp:gnome-activity-journal has been updated.

Status: Needs review => Merged
-- 
https://code.launchpad.net/~cando/gnome-activity-journal/dnd-pinning/+merge/41866
Your team GNOME Zeitgeist Team is requested to review the proposed merge of 
lp:~cando/gnome-activity-journal/dnd-pinning into lp:gnome-activity-journal.

___
Mailing list: https://launchpad.net/~gnome-zeitgeist
Post to : gnome-zeitge...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~gnome-zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Gnome-zeitgeist] [Bug 680653] Re: Pinning feature is broken

2010-11-25 Thread Stefano Candori
** Changed in: gnome-activity-journal
   Status: In Progress => Fix Committed

-- 
Pinning feature is broken
https://bugs.launchpad.net/bugs/680653
You received this bug notification because you are a member of GNOME
Zeitgeist Team, which is the registrant for GNOME Activity Journal.

Status in GNOME Activity Journal: Fix Committed

Bug description:
When i try to pin an item i get this error/warning and the item isn't pinned:

/home/cando/Scrivania/gnome-activity-journal/src/common.py:752: 
DeprecationWarning: object.__new__() takes no parameters
  GIO_FILES[subj] = object.__new__(classtype, *args, **kwargs)
/home/cando/Scrivania/gnome-activity-journal/src/activity_widgets.py:279: 
GtkWarning: gtk_box_pack: assertion `child->parent == NULL' failed
  self.pack_end(hbox)



___
Mailing list: https://launchpad.net/~gnome-zeitgeist
Post to : gnome-zeitge...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~gnome-zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 682207] [NEW] Deleted Tomboy notes appears on AJ

2010-11-27 Thread Stefano Candori
Public bug reported:

As title says, if i delete a tomboy's note it appears anyway in GAJ. I
report this bug here because i think it's a tomboy dataprovider related
problem.

** Affects: zeitgeist-dataproviders
 Importance: Undecided
 Status: New

-- 
Deleted Tomboy notes appears on AJ 
https://bugs.launchpad.net/bugs/682207
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.

Status in Zeitgeist Data-Sources: New

Bug description:
As title says, if i delete a tomboy's note it appears anyway in GAJ. I report 
this bug here because i think it's a tomboy dataprovider related problem.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 682207] Re: Deleted Tomboy notes appears on AJ

2010-11-28 Thread Stefano Candori
well, there is actually a delete_event..so it's not a tomboy related problem..
It's GAJ that should not display item with a DELETE_EVENT Interpretation...

** Changed in: zeitgeist-dataproviders
   Status: Incomplete => Invalid

-- 
Deleted Tomboy notes appears on AJ 
https://bugs.launchpad.net/bugs/682207
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.

Status in Zeitgeist Data-Sources: Invalid

Bug description:
As title says, if i delete a tomboy's note it appears anyway in GAJ. I report 
this bug here because i think it's a tomboy dataprovider related problem.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 561860] Re: Activity Journal's Right-Click Delete Functionality Broken

2010-12-01 Thread Stefano Candori
@Siegfried, solved thanks..
Well, also GAJ works flawlessy..i think we can close this bug.

-- 
Activity Journal's Right-Click Delete Functionality Broken
https://bugs.launchpad.net/bugs/561860
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in GNOME Activity Journal: In Progress
Status in Zeitgeist Framework: Fix Released

Bug description:
"
Description of problem:
Activity Journal's right-click delete functionality is broken.

Version-Release number of selected component (if applicable):
0.3.3

How reproducible:
100%

Steps to Reproduce:
1. Launch the Activity Journal.
2. Right-click on an item.
3. From the context menu that appears, choose to delete the item from the
journal.

Actual results:
Nothing happens.

Expected results:
Item's entry should be removed.
"


Reported in Fedora 13 against gnome-activity-journal-0.3.3-1.fc13.noarch.

https://bugzilla.redhat.com/show_bug.cgi?id=579144



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 687324] Re: Tomboy notes should be filed under documents

2010-12-08 Thread Stefano Candori
Hi Omar! Thanks for your bug report. Maybe i've not completely understood you 
question but at the moment in GAJ, Tomboy notes appear on their own category: 
"Edited or Read Notes". Like other files, notes are grouped  and displayed 
categorized together only after there are few of them; in our case 4 notes.
Please tell me if i've misunderstood your bug report.

Cheers

** Changed in: zeitgeist-dataproviders
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/687324

Title:
  Tomboy notes should be filed under documents

Status in Zeitgeist Data-Sources:
  Incomplete

Bug description:
  Actually, this is a bug I found through gnome-activity-journal. It displays 
the records below categories, and I guess it's zeitgeist's job to organize the 
entries in the database.

Point is, tomboy notes do not appear under any category (internet, documents, 
etc), but on their own. This means that if I access zeitgeist through an 
external app, like synpase or g-a-j, tomboy's notes results are not shown under 
the documents tabs in Synapse, but as an individual element with no 
categorization.

I hope I filed the bug in the right place. Please reassign to another package 
if I did wrong.

Cheers,



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 687324] Re: Tomboy notes should be filed under documents

2010-12-08 Thread Stefano Candori
Really no problem! Thanks again!

** Changed in: zeitgeist-dataproviders
   Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/687324

Title:
  Tomboy notes should be filed under documents

Status in Zeitgeist Data-Sources:
  Invalid

Bug description:
  Actually, this is a bug I found through gnome-activity-journal. It displays 
the records below categories, and I guess it's zeitgeist's job to organize the 
entries in the database.

Point is, tomboy notes do not appear under any category (internet, documents, 
etc), but on their own. This means that if I access zeitgeist through an 
external app, like synpase or g-a-j, tomboy's notes results are not shown under 
the documents tabs in Synapse, but as an individual element with no 
categorization.

I hope I filed the bug in the right place. Please reassign to another package 
if I did wrong.

Cheers,



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 689080] Re: Vim datasource results in error when editing files remotely

2010-12-21 Thread Stefano Candori
Hi Carlos, thanks for your bug report...However this is not a gnome-
activity-journal bug but a zeitgeist-daemon / data-providers one.


** Also affects: zeitgeist-dataproviders
   Importance: Undecided
   Status: New

** Changed in: gnome-activity-journal
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/689080

Title:
  Vim datasource results in error when editing files remotely

Status in GNOME Activity Journal:
  Invalid
Status in Zeitgeist Data-Sources:
  New

Bug description:
  Hi,

With zeitgeist-datasource-vim installed, vim returns the following errors if I 
try to open vim in a SSH session:

Error detected while processing /usr/share/vim/vim72/plugin/zeitgeist.vim:
line   54:
Traceback (most recent call last):
  File "", line 9, in 
  File "/usr/lib/pymodules/python2.6/zeitgeist/client.py", line 310, in __init__
self._iface = ZeitgeistDBusInterface()
  File "/usr/lib/pymodules/python2.6/zeitgeist/client.py", line 175, in __init__
proxy = dbus.SessionBus().get_object(self.BUS_NAME,
  File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 219, in __new__
mainloop=mainloop)
  File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 108, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 125, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: 
/bin/dbus-launch terminated abnormally with the following error: Autolaunch 
error: X11 initialization failed.


All the best.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 689080] Re: Vim datasource results in error when editing files remotely

2010-12-21 Thread Stefano Candori
I've added Zeitgeist data-sources in affected projects..

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/689080

Title:
  Vim datasource results in error when editing files remotely

Status in GNOME Activity Journal:
  Invalid
Status in Zeitgeist Data-Sources:
  New

Bug description:
  Hi,

With zeitgeist-datasource-vim installed, vim returns the following errors if I 
try to open vim in a SSH session:

Error detected while processing /usr/share/vim/vim72/plugin/zeitgeist.vim:
line   54:
Traceback (most recent call last):
  File "", line 9, in 
  File "/usr/lib/pymodules/python2.6/zeitgeist/client.py", line 310, in __init__
self._iface = ZeitgeistDBusInterface()
  File "/usr/lib/pymodules/python2.6/zeitgeist/client.py", line 175, in __init__
proxy = dbus.SessionBus().get_object(self.BUS_NAME,
  File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 219, in __new__
mainloop=mainloop)
  File "/usr/lib/pymodules/python2.6/dbus/_dbus.py", line 108, in __new__
bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/lib/pymodules/python2.6/dbus/bus.py", line 125, in __new__
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ExecFailed: 
/bin/dbus-launch terminated abnormally with the following error: Autolaunch 
error: X11 initialization failed.


All the best.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695003] [NEW] Bzr data-source doens't use different uri for different events on same branch

2010-12-28 Thread Stefano Candori
Public bug reported:

Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each
revision a different URI, possibly including the revision ID.

** Affects: zeitgeist-dataproviders
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/695003

Title:
  Bzr data-source doens't use different uri for different events on same branch

Status in Zeitgeist Data-Sources:
  New

Bug description:
  Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each revision a 
different URI, possibly including the revision ID.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695003] Re: Bzr datasource doesn't use different uri for different events on the same branch

2010-12-28 Thread Stefano Candori
+1 for me. I've suggested the same thing in a previous bug.
If nobody else has a better idea i could assign this bug to me.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/695003

Title:
  Bzr datasource doesn't use different uri for different events on the same 
branch

Status in Zeitgeist Data-Sources:
  New

Bug description:
  Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each revision a 
different URI, possibly including the revision ID.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Gnome-zeitgeist] [Bug 694849] Re: Gnome Activity Journal doesn't show any activities even if all dipendencies installed

2010-12-28 Thread Stefano Candori
It seems to work properly...Other try: download and try the trunk version from 
here:https://launchpad.net/gnome-activity-journal
Follow the instructions and tell me if it works.
Meanwhile i'll think to what is causing this bug...:)

-- 
You received this bug notification because you are a member of GNOME
Zeitgeist Team, which is the registrant for GNOME Activity Journal.
https://bugs.launchpad.net/bugs/694849

Title:
  Gnome Activity Journal doesn't show any activities even if all dipendencies 
installed

Status in GNOME Activity Journal:
  Confirmed

Bug description:
  When starting Activity Journal (ppa) from terminal:

** Message: pygobject_register_sinkfunc is deprecated (GstObject)
`menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load
/usr/share/gnome-activity-journal/src/supporting_widgets.py:728: GtkWarning: 
Failed to load type module: (null)

  super(ContextMenu, self).__init__()
`menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load
/usr/share/gnome-activity-journal/src/supporting_widgets.py:348: GtkWarning: 
Failed to load type module: (null)

  self.combobox = gtk.combo_box_new_text()

Ubuntu Maverick 10.10 32bit
gnome-activity-journal 0.5.0.1-0ubuntu1
zeitgeist-core 0.6-0ubuntu1~0ppa1~maverick



___
Mailing list: https://launchpad.net/~gnome-zeitgeist
Post to : gnome-zeitge...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~gnome-zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Gnome-zeitgeist] [Bug 694849] Re: Gnome Activity Journal doesn't show any activities even if all dipendencies installed

2010-12-28 Thread Stefano Candori
before doing what i've just said try this: sudo apt-get install appmenu-
gtk

-- 
You received this bug notification because you are a member of GNOME
Zeitgeist Team, which is the registrant for GNOME Activity Journal.
https://bugs.launchpad.net/bugs/694849

Title:
  Gnome Activity Journal doesn't show any activities even if all dipendencies 
installed

Status in GNOME Activity Journal:
  Confirmed

Bug description:
  When starting Activity Journal (ppa) from terminal:

** Message: pygobject_register_sinkfunc is deprecated (GstObject)
`menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load
/usr/share/gnome-activity-journal/src/supporting_widgets.py:728: GtkWarning: 
Failed to load type module: (null)

  super(ContextMenu, self).__init__()
`menu_proxy_module_load': python: undefined symbol: menu_proxy_module_load
/usr/share/gnome-activity-journal/src/supporting_widgets.py:348: GtkWarning: 
Failed to load type module: (null)

  self.combobox = gtk.combo_box_new_text()

Ubuntu Maverick 10.10 32bit
gnome-activity-journal 0.5.0.1-0ubuntu1
zeitgeist-core 0.6-0ubuntu1~0ppa1~maverick



___
Mailing list: https://launchpad.net/~gnome-zeitgeist
Post to : gnome-zeitge...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~gnome-zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695003] Re: Bzr datasource doesn't use different uri for different events on the same branch

2011-01-05 Thread Stefano Candori
The bzr: URN sounds good to me, because doing that we have different uris and 
we don't have to compare text.
Anyway the URL thing doesn't work: a COMMIT on a branch it's not a PUSH. So if 
the user only commits we don't have an URL suitable for the URI...but i could 
be wrong.

In conclusion: +1 bzr: URN.

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/695003

Title:
  Bzr datasource doesn't use different uri for different events on the same 
branch

Status in Zeitgeist Data-Sources:
  New

Bug description:
  Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each revision a 
different URI, possibly including the revision ID.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695003] Re: Bzr datasource doesn't use different uri for different events on the same branch

2011-01-05 Thread Stefano Candori
Yes, it's a special casing and GAJ and other clients must handle it...anyway 
also comparing the text is a plus operation that GAJ should do.
Concluding, in every case the client should handle bzr event in a different 
way; we only have to decide what's the "less invasive".

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/695003

Title:
  Bzr datasource doesn't use different uri for different events on the same 
branch

Status in Zeitgeist Data-Sources:
  New

Bug description:
  Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each revision a 
different URI, possibly including the revision ID.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Bug 695003] Re: Bzr datasource doesn't use different uri for different events on the same branch

2011-01-05 Thread Stefano Candori
Well, now that have that info, i think we should have to choose the idea of
Mikkel.
Michal is it ok for you?

2011/1/5 Mikkel Kamstrup Erlandsen 

> On 5 January 2011 15:43, Mikkel Kamstrup Erlandsen
>  wrote:
> > On 5 January 2011 12:38, Michal Hruby  wrote:
> >>>  file:///home/mikkel/myproject/trunk#27
> >>
> >> This is a perfectly valid file (directory) name, with one little problem
> >> that it doesn't exist.
> >
> > This is *not* a file name. It is a URI. Let's keep the terminology
> > correct here. It has path member being /home/mikkel/myproject/trunk
> > and has a URI fragment of 27. Please see
> > http://labs.apache.org/webarch/uri/rfc/rfc3986.html#components.
> >
> > Fragments should be definition point to some resource inside the
> > resource specified by the path element. If we consider the path
> > element as a bzr repo, and not just a file, then I think that a revno
> > fragment is perfectly reasonable.
>
> BTW - and if an app instructed to open file:///foo.txt#27 fails with
> "Can not open /foo.txt#27. No such file or directory." Then that's a
> bug in the app. Because the fragment should not be taken into account
> when resolving the path.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/695003
>
> Title:
>  Bzr datasource doesn't use different uri for different events on the same
> branch
>
> Status in Zeitgeist Data-Sources:
>  New
>
> Bug description:
>  Step to reproduce:
>  -commit or pull in a bzr branch >the event show up in GAJ
>  -commit or pull another time---> the event doens't show up because GAJ
> discard it (these two events have the same uri: the branch's path one)
>
> RainCT opinion: IMHO the Bazaar plugin should be fixed to give each
> revision a different URI, possibly including the revision ID.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/zeitgeist-dataproviders/+bug/695003/+subscribe
>


** Changed in: zeitgeist-dataproviders
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/695003

Title:
  Bzr datasource doesn't use different uri for different events on the same 
branch

Status in Zeitgeist Data-Sources:
  Confirmed

Bug description:
  Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each revision a 
different URI, possibly including the revision ID.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 695003] Re: Bzr datasource doesn't use different uri for different events on the same branch

2011-01-05 Thread Stefano Candori
** Changed in: zeitgeist-dataproviders
 Assignee: (unassigned) => Stefano Candori (cando)

** Changed in: zeitgeist-dataproviders
   Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/695003

Title:
  Bzr datasource doesn't use different uri for different events on the same 
branch

Status in Zeitgeist Data-Sources:
  In Progress

Bug description:
  Step to reproduce:
 -commit or pull in a bzr branch >the event show up in GAJ
 -commit or pull another time---> the event doens't show up because GAJ 
discard it (these two events have the same uri: the branch's path one) 

RainCT opinion: IMHO the Bazaar plugin should be fixed to give each revision a 
different URI, possibly including the revision ID.



___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 762138] Re: Please add a button "Stop all logging"

2011-04-15 Thread Stefano Candori
@Siegfried Btw it could be useful for people that doesn't use GAJ. E.g.
i guess a lot of future Unity users...

-- 
You received this bug notification because you are a member of History
Manager, which is the registrant for History Manager.
https://bugs.launchpad.net/bugs/762138

Title:
  Please add a button "Stop all logging"

Status in History Manager for Zeitgeist:
  Confirmed

Bug description:
  There can be times when the user wants to stop all the logging, in
  such a case there has to be a big fat  button named "Stop All"

  After "Stop All" is pressed, the status should change "No activities
  are been logged" and the "Stop All" is replaced by"Start"

  This can be added in the first tab itself.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Bug 762138] Re: Please add a button "Stop all logging"

2011-04-15 Thread Stefano Candori
Ahaha awesome...i'll use it!:)

2011/4/16 Siegfried Gevatter 

> 2011/4/15 Stefano Candori :
> > @Siegfried Btw it could be useful for people that doesn't use GAJ. E.g.
> > i guess a lot of future Unity users...
>
> Yes, was mentioning just so you're aware there is already code for that
> :)
>
> --
> You received this bug notification because you are a member of History
> Manager, which is the registrant for History Manager.
> https://bugs.launchpad.net/bugs/762138
>
> Title:
>  Please add a button "Stop all logging"
>
> Status in History Manager for Zeitgeist:
>  Confirmed
>
> Bug description:
>  There can be times when the user wants to stop all the logging, in
>  such a case there has to be a big fat  button named "Stop All"
>
>  After "Stop All" is pressed, the status should change "No activities
>  are been logged" and the "Stop All" is replaced by"Start"
>
>  This can be added in the first tab itself.
>

-- 
You received this bug notification because you are a member of History
Manager, which is the registrant for History Manager.
https://bugs.launchpad.net/bugs/762138

Title:
  Please add a button "Stop all logging"

Status in History Manager for Zeitgeist:
  Confirmed

Bug description:
  There can be times when the user wants to stop all the logging, in
  such a case there has to be a big fat  button named "Stop All"

  After "Stop All" is pressed, the status should change "No activities
  are been logged" and the "Stop All" is replaced by"Start"

  This can be added in the first tab itself.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 762138] Re: Please add a button "Stop all logging"

2011-04-16 Thread Stefano Candori
** Changed in: history-manager
   Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of History
Manager, which is the registrant for History Manager.
https://bugs.launchpad.net/bugs/762138

Title:
  Please add a button "Stop all logging"

Status in History Manager for Zeitgeist:
  In Progress

Bug description:
  There can be times when the user wants to stop all the logging, in
  such a case there has to be a big fat  button named "Stop All"

  After "Stop All" is pressed, the status should change "No activities
  are been logged" and the "Stop All" is replaced by"Start"

  This can be added in the first tab itself.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 762138] Re: Please add a button "Stop all logging"

2011-04-16 Thread Stefano Candori
I've pushed a first draft of this big fat buttonbut i don't like it so much.
Any suggestions on how to improve it??

-- 
You received this bug notification because you are a member of History
Manager, which is the registrant for History Manager.
https://bugs.launchpad.net/bugs/762138

Title:
  Please add a button "Stop all logging"

Status in History Manager for Zeitgeist:
  In Progress

Bug description:
  There can be times when the user wants to stop all the logging, in
  such a case there has to be a big fat  button named "Stop All"

  After "Stop All" is pressed, the status should change "No activities
  are been logged" and the "Stop All" is replaced by"Start"

  This can be added in the first tab itself.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 762138] Re: Please add a button "Stop all logging"

2011-04-22 Thread Stefano Candori
** Changed in: history-manager
   Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of History
Manager, which is the registrant for History Manager.
https://bugs.launchpad.net/bugs/762138

Title:
  Please add a button "Stop all logging"

Status in History Manager for Zeitgeist:
  Fix Committed

Bug description:
  There can be times when the user wants to stop all the logging, in
  such a case there has to be a big fat  button named "Stop All"

  After "Stop All" is pressed, the status should change "No activities
  are been logged" and the "Stop All" is replaced by"Start"

  This can be added in the first tab itself.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 784884] Re: Bazaar plugin: Commits from others should be WORLD_ACTIVITY

2011-05-18 Thread Stefano Candori
+1

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.
https://bugs.launchpad.net/bugs/784884

Title:
  Bazaar plugin: Commits from others should be WORLD_ACTIVITY

Status in Zeitgeist Data-Providers:
  New

Bug description:
  Currently the bzr plugin is using Manifestation.USER_ACTIVITY for
  everything. It should use WORLD_ACTIVITY when pulling new revision so
  that applications can discriminate commits by other people.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~cando/zeitgeist/storage-monitor into lp:zeitgeist

2011-12-02 Thread Stefano Candori
Stefano Candori has proposed merging lp:~cando/zeitgeist/storage-monitor into 
lp:zeitgeist.

Requested reviews:
  Zeitgeist Framework Team (zeitgeist)

For more details, see:
https://code.launchpad.net/~cando/zeitgeist/storage-monitor/+merge/84299

In this branch i've ported the support for "net-storages" in the 
storage-monitor.
-- 
https://code.launchpad.net/~cando/zeitgeist/storage-monitor/+merge/84299
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~cando/zeitgeist/storage-monitor into lp:zeitgeist.
=== modified file 'extensions/storage-monitor.vala'
--- extensions/storage-monitor.vala	2011-09-30 09:35:12 +
+++ extensions/storage-monitor.vala	2011-12-02 17:23:25 +
@@ -2,6 +2,7 @@
  *
  * Copyright © 2011 Collabora Ltd.
  * By Siegfried-Angel Gevatter Pujals 
+ * Copyright © 2011 Stefano Candori 
  *
  * Based upon a Python implementation:
  *  Copyright © 2009 Mikkel Kamstrup Erlandsen 
@@ -36,6 +37,14 @@
 [DBus (signature = "a{sv}")] Variant storage_description);
 public signal void storage_unavailable (string storage_id);
 }
+
+public interface NetworkMonitor: Object
+{
+public abstract void setup ();
+
+public signal void on_network_up ();
+public signal void on_network_down ();
+}
 
 namespace StorageMedia
 {
@@ -97,6 +106,10 @@
 private Sqlite.Statement store_storage_medium_stmt;
 private Sqlite.Statement insert_unavailable_medium_stmt;
 private Sqlite.Statement update_medium_state_stmt;
+
+private NetworkMonitor network;
+private uint watch_connman;
+private uint watch_nm;
 
 StorageMonitor ()
 {
@@ -136,7 +149,48 @@
 volume.get_icon ().to_string (), volume.get_name ());
 }
 
-// FIXME: ConnMan / NetworkManager D-Bus stuff...
+//Write connectivity to the DB. Dynamically decide whether to use
+// Connman or NetworkManager
+watch_connman = Bus.watch_name (BusType.SYSTEM, 
+  "net.connman", 
+  BusNameWatcherFlags.NONE,
+  name_appeared_handler,
+  null);
+watch_nm = Bus.watch_name (BusType.SYSTEM, 
+  "org.freedesktop.NetworkManager", 
+  BusNameWatcherFlags.NONE,
+  name_appeared_handler,
+  null);
+
+}
+
+private void name_appeared_handler(DBusConnection connection, string name, string name_owner)
+{
+if (this.network != null)
+{
+if (name == "net.connman")
+Bus.unwatch_name (watch_connman);
+else if (name == "org.freedesktop.NetworkManager")
+Bus.unwatch_name (watch_nm);
+}
+else
+{   
+if (name == "net.connman")
+this.network = new ConnmanNetworkMonitor ();
+else if (name == "org.freedesktop.NetworkManager")
+this.network = new NMNetworkMonitor ();
+
+this.network.on_network_up.connect (() => 
+this.add_storage_medium ("net", "stock_internet", "Internet"));
+this.network.on_network_down.connect (() => 
+this.remove_storage_medium ("net"));
+
+this.network.setup ();
+
+Bus.unwatch_name (watch_connman);
+Bus.unwatch_name (watch_nm);
+}
+
 }
 
 public override void unload ()
@@ -329,6 +383,106 @@
 
 }
 
+/*
+ * Checks whether there is a funtioning network interface via
+ * NetworkManager (requires NM >= 0.8).
+ * See http://projects.gnome.org/NetworkManager/developers/spec-08.html
+ */
+class NMNetworkMonitor : Object, NetworkMonitor
+{
+private const string NM_BUS_NAME = "org.freedesktop.NetworkManager";
+private const string NM_IFACE = "org.freedesktop.NetworkManager";
+private const string NM_OBJECT_PATH = "/org/freedesktop/NetworkManager";
+
+//NM 0.9 broke API so we have to check for two possible values for the state
+private const int NM_STATE_CONNECTED_PRE_09 = 3;
+private const int NM_STATE_CONNECTED_POST_09 = 70;
+
+private NetworkManagerDBus proxy;
+
+public NMNetworkMonitor ()
+{
+Object ();
+}
+
+public void s

[Zeitgeist] [Merge] lp:~cando/zeitgeist/timezone_hell into lp:zeitgeist

2011-12-07 Thread Stefano Candori
Stefano Candori has proposed merging lp:~cando/zeitgeist/timezone_hell into 
lp:zeitgeist.

Requested reviews:
  Zeitgeist Framework Team (zeitgeist)

For more details, see:
https://code.launchpad.net/~cando/zeitgeist/timezone_hell/+merge/84746

This branch fixes the timezone problem in the histogram extension.
I've also added the test for checking this ( with the relative explanation.. :) 
).

-- 
https://code.launchpad.net/~cando/zeitgeist/timezone_hell/+merge/84746
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~cando/zeitgeist/timezone_hell into lp:zeitgeist.
=== modified file 'extensions/histogram.vala'
--- extensions/histogram.vala	2011-09-25 15:58:52 +
+++ extensions/histogram.vala	2011-12-07 12:22:33 +
@@ -1,6 +1,7 @@
 /* histogram.vala
  *
  * Copyright © 2011 Michal Hruby 
+ * Copyright © 2011 Stefano Candori 
  *
  * Based upon a Python implementation (2010-2011) by:
  *  Siegfried-Angel Gevatter Pujals 
@@ -73,8 +74,8 @@
 var builder = new VariantBuilder (new VariantType ("a(xu)"));
 
 string sql = """
-SELECT strftime('%s', datetime(timestamp/1000, 'unixepoch'),
-'start of day') AS daystamp,
+SELECT strftime('%s', datetime(timestamp/1000, 'unixepoch',
+'localtime'), 'start of day') AS daystamp,
 COUNT(*)
 FROM event
 GROUP BY daystamp

=== modified file 'test/dbus/Makefile.am'
--- test/dbus/Makefile.am	2011-10-29 14:09:14 +
+++ test/dbus/Makefile.am	2011-12-07 12:22:33 +
@@ -4,6 +4,7 @@
 	blacklist-test.py \
 	dsr-test.py \
 	engine-test.py \
+	histogram-test.py \
 	monitor-test.py \
 	remote-test.py \
 	testutils.py \

=== added file 'test/dbus/histogram-test.py'
--- test/dbus/histogram-test.py	1970-01-01 00:00:00 +
+++ test/dbus/histogram-test.py	2011-12-07 12:22:33 +
@@ -0,0 +1,106 @@
+#! /usr/bin/python
+# -.- coding: utf-8 -.-
+
+# histogram-test.py
+#
+# Copyright © 2011 Stefano Candori 
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation, either version 2.1 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# Update python path to use local zeitgeist module
+
+import sys
+import os
+import time
+import datetime
+import calendar
+import unittest
+import gobject
+
+sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
+from zeitgeist.client import ZeitgeistDBusInterface
+from zeitgeist.datamodel import *
+from testutils import RemoteTestCase, import_events
+
+#
+# EXPLANATION OF THE TEST:
+# The test checks if the histogram extension works well despite the 
+# ***timezone's hell***.
+# For example the extension, for an user in the GMT+2 timezone, should count 
+# an event inserted on the 2011/12/24 at 1:30 AM as belonging to the day 24.
+# The problem is that in the engine the events are inserted as UTC-relative:
+# for the example our event is inserted for the day 2011/12/23 at 23:30 UTC.
+# The Histogram extension must revert this when collecting data, and this test 
+# check this.
+#
+# **
+#
+# In the test we create an event in the "borderline" time for the timezone and 
+# then we insert it in the engine as UCT-relative. After, we retrieve the data
+# from the extension and finally we check that the event belong to the right day
+#
+
+class HistogramTest(RemoteTestCase):
+
+	def __init__(self, methodName):
+		super(HistogramTest, self).__init__(methodName)
+		self.histogram = None
+
+	def setUp(self):
+		# lazy import to get a chance to use the private bus
+		import dbus
+		
+		# We set up the connection lazily in order to wait for the
+		# engine to come up
+		super(HistogramTest, self).setUp()
+		obj = dbus.SessionBus().get_object("org.gnome.zeitgeist.Engine",
+			"/org/gnome/zeitgeist/journal/activity")
+		self.histogram = dbus.Interface(obj, "org.gnome.zeitgeist.Histogram")
+		
+	def _createEventOne(self):
+		ev = Event.new_for_values(interpretation=Interpretation.ACCESS_EVENT,
+			subject_uri="file://sisisisisisi")
+		ev.manifestation = Manifestation.USER_ACTIVITY
+		
+		if time.timezone < 0 :
+			start_hour = 24 + int(time.timezone / 3600)

[Zeitgeist] [Merge] lp:~cando/activity-log-manager/925638 into lp:activity-log-manager

2012-02-24 Thread Stefano Candori
Stefano Candori has proposed merging lp:~cando/activity-log-manager/925638 into 
lp:activity-log-manager.

Requested reviews:
  Activity Log Manager (activity-log-manager)

For more details, see:
https://code.launchpad.net/~cando/activity-log-manager/925638/+merge/94543

In this branch i've fixed bug 925638 adding the usage and last used indication 
to ApplicationChooser.
Here's the screenshot: 
https://plus.google.com/u/0/photos/117377902943785951914/albums/5712696941390553921/5712696940324273794

I've also added a LDADD flag "-lm" to the Makefile fixing a undefined reference 
error to the Glib's fucntion ceil that i encounter here in fedora 16.
-- 
https://code.launchpad.net/~cando/activity-log-manager/925638/+merge/94543
Your team Activity Log Manager is requested to review the proposed merge of 
lp:~cando/activity-log-manager/925638 into lp:activity-log-manager.
=== modified file 'po/Makefile.in.in'
--- po/Makefile.in.in	2012-02-08 13:55:27 +
+++ po/Makefile.in.in	2012-02-24 13:43:20 +
@@ -49,8 +49,8 @@
 XGETTEXT = @XGETTEXT@
 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
-MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
-GENPOT   = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
+MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
+GENPOT   = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
 
 ALL_LINGUAS = @ALL_LINGUAS@
 
@@ -73,20 +73,15 @@
 .SUFFIXES:
 .SUFFIXES: .po .pox .gmo .mo .msg .cat
 
-AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
-INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
-INTLTOOL__v_MSGFMT_0 = @echo "  MSGFMT" $@;
-
 .po.pox:
 	$(MAKE) $(GETTEXT_PACKAGE).pot
 	$(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
 
 .po.mo:
-	$(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
+	$(MSGFMT) -o $@ $<
 
 .po.gmo:
-	$(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
+	file=`echo $* | sed 's,.*/,,'`.gmo \
 	  && rm -f $$file && $(GMSGFMT) -o $$file $<
 
 .po.cat:

=== modified file 'src/Makefile.am'
--- src/Makefile.am	2012-02-21 10:29:34 +
+++ src/Makefile.am	2012-02-24 13:43:20 +
@@ -64,7 +64,8 @@
 	$(GTK_LIBS) \
 	$(ZEITGEIST_LIBS) \
 	$(GEE_LIBS) \
-	$(GIO_UNIX_LIBS)
+	$(GIO_UNIX_LIBS) \
+	-lm
 activity_log_manager_LDADD = \
 	$(SHARED_LIBS)
 libactivity_log_manager_la_LIBADD = \

=== modified file 'src/applications-widget.vala'
--- src/applications-widget.vala	2012-02-22 00:24:39 +
+++ src/applications-widget.vala	2012-02-24 13:43:20 +
@@ -413,6 +413,9 @@
 			APP_NAME,
 			ICON,
 			DESKTOP_FILE,
+			LAST_ACCESSED_STRING,
+			LAST_ACCESSED_INT,
+			USAGE,
 			N_COLS
 		}
 
@@ -437,6 +440,7 @@
 		typeof (Gdk.Pixbuf),
 		typeof (string),
 		typeof (string),
+		typeof (int64),
 		typeof (uint));
 			this.treeview = new TreeView.with_model (this.store);
 			this.treeview.set_headers_visible (true);
@@ -457,15 +461,28 @@
 			column_pix_name.pack_start (name_rend, true);
 			column_pix_name.add_attribute (name_rend, "text", 0);
 			column_pix_name.set_resizable (true);
+			column_pix_name.set_min_width (200);
+			column_pix_name.set_sort_column_id (0);
 
-			/*var column_used_name = new TreeViewColumn ();
+			var column_used_name = new TreeViewColumn ();
 			column_used_name.set_title ("Last Used");
 			this.treeview.append_column (column_used_name);
 			var used_rend = new CellRendererText ();
 			used_rend.set_property ("ellipsize", Pango.EllipsizeMode.END);
 			column_used_name.pack_start (used_rend, true);
-			column_used_name.add_attribute (used_rend, "used", 3);
-			column_used_name.set_resizable (true);*/
+			column_used_name.add_attribute (used_rend, "text", 3);
+			column_used_name.set_resizable (true);
+			column_used_name.set_min_width (200);
+			column_used_name.set_sort_column_id (4);
+			
+			var column_usage_name = new TreeViewColumn ();
+			column_usage_name.set_title ("Activity");
+			this.treeview.append_column (column_usage_name);
+			var usage_rend = new UsageCellRenderer ();
+			column_usage_name.pack_start (usage_rend, true);
+			column_usage_name.add_attribute (usage_rend, "usage", 5);
+			//column_usage_name.set_fixed_width (120);
+			column_usage_name.set_sort_column_id (5);
 			
 			var scroll = new ScrolledWindow (null, null);
 			scroll.add (this.treeview);
@@ -529,7 +546,8 @@
 			foreach(AppInfo app_info in all_infos)
 			{
 string id = app_info.get_i

Re: [Zeitgeist] [Merge] lp:~cando/activity-log-manager/925638 into lp:activity-log-manager

2012-02-24 Thread Stefano Candori
ops..sorry! Now should be fixed.
-- 
https://code.launchpad.net/~cando/activity-log-manager/925638/+merge/94543
Your team Activity Log Manager is requested to review the proposed merge of 
lp:~cando/activity-log-manager/925638 into lp:activity-log-manager.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 925637] Re: Folder blacklisted list should be enhanced to match with the prototype

2012-03-11 Thread Stefano Candori
I'm on it...and it's shaping up nicely... :)

-- 
You received this bug notification because you are a member of Activity
Log Manager, which is the registrant for Activity Log Manager.
https://bugs.launchpad.net/bugs/925637

Title:
  Folder blacklisted list should be enhanced to match with the prototype

Status in Activity Log Manager for Zeitgeist:
  Confirmed

Bug description:
  Right now files blocklisting is just a list of folders. It should contain a 
icon and nautilus icon in case of special folders
  Right now it looks like this
  http://i.imgur.com/MfD5E.png

  and should look like
  
https://lh4.googleusercontent.com/VzHz73ZkGqMdtsqK3uelIRMJqCXsQ74Y6WhP4qLRLkTNdOoHAZrgEkurV-N_wSPFQwr5inz0gT0iL5hb6rXk-Ughj1FAk_A3RXtgFIM9L8K2c_kJ2Ok

To manage notifications about this bug go to:
https://bugs.launchpad.net/activity-log-manager/+bug/925637/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 925637] Re: Folder blacklisted list should be enhanced to match with the prototype

2012-03-12 Thread Stefano Candori
** Changed in: activity-log-manager
   Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Activity
Log Manager, which is the registrant for Activity Log Manager.
https://bugs.launchpad.net/bugs/925637

Title:
  Folder blacklisted list should be enhanced to match with the prototype

Status in Activity Log Manager for Zeitgeist:
  Fix Committed

Bug description:
  Right now files blocklisting is just a list of folders. It should contain a 
icon and nautilus icon in case of special folders
  Right now it looks like this
  http://i.imgur.com/MfD5E.png

  and should look like
  
https://lh4.googleusercontent.com/VzHz73ZkGqMdtsqK3uelIRMJqCXsQ74Y6WhP4qLRLkTNdOoHAZrgEkurV-N_wSPFQwr5inz0gT0iL5hb6rXk-Ughj1FAk_A3RXtgFIM9L8K2c_kJ2Ok

To manage notifications about this bug go to:
https://bugs.launchpad.net/activity-log-manager/+bug/925637/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 925637] Re: Folder blacklisted list should be enhanced to match with the prototype

2012-03-12 Thread Stefano Candori
Sure seif, thanks. I'll fix it this evening...

-- 
You received this bug notification because you are a member of Activity
Log Manager, which is the registrant for Activity Log Manager.
https://bugs.launchpad.net/bugs/925637

Title:
  Folder blacklisted list should be enhanced to match with the prototype

Status in Activity Log Manager for Zeitgeist:
  Fix Committed

Bug description:
  Right now files blocklisting is just a list of folders. It should contain a 
icon and nautilus icon in case of special folders
  Right now it looks like this
  http://i.imgur.com/MfD5E.png

  and should look like
  
https://lh4.googleusercontent.com/VzHz73ZkGqMdtsqK3uelIRMJqCXsQ74Y6WhP4qLRLkTNdOoHAZrgEkurV-N_wSPFQwr5inz0gT0iL5hb6rXk-Ughj1FAk_A3RXtgFIM9L8K2c_kJ2Ok

To manage notifications about this bug go to:
https://bugs.launchpad.net/activity-log-manager/+bug/925637/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 925637] Re: Folder blacklisted list should be enhanced to match with the prototype

2012-03-13 Thread Stefano Candori
I've pushed the correction you've asked, seif. :)

-- 
You received this bug notification because you are a member of Activity
Log Manager, which is the registrant for Activity Log Manager.
https://bugs.launchpad.net/bugs/925637

Title:
  Folder blacklisted list should be enhanced to match with the prototype

Status in Activity Log Manager for Zeitgeist:
  Fix Committed

Bug description:
  Right now files blocklisting is just a list of folders. It should contain a 
icon and nautilus icon in case of special folders
  Right now it looks like this
  http://i.imgur.com/MfD5E.png

  and should look like
  
https://lh4.googleusercontent.com/VzHz73ZkGqMdtsqK3uelIRMJqCXsQ74Y6WhP4qLRLkTNdOoHAZrgEkurV-N_wSPFQwr5inz0gT0iL5hb6rXk-Ughj1FAk_A3RXtgFIM9L8K2c_kJ2Ok

To manage notifications about this bug go to:
https://bugs.launchpad.net/activity-log-manager/+bug/925637/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Merge] lp:~cando/activity-log-manager/appdialog-fixes into lp:activity-log-manager

2012-03-15 Thread Stefano Candori
Stefano Candori has proposed merging 
lp:~cando/activity-log-manager/appdialog-fixes into lp:activity-log-manager.

Requested reviews:
  Activity Log Manager (activity-log-manager)

For more details, see:
https://code.launchpad.net/~cando/activity-log-manager/appdialog-fixes/+merge/97629

In this branch i've added a bunch of fixes regarding the 
ApplicationChooserDialog.
See the commit below for the explanation of the changes.
-- 
https://code.launchpad.net/~cando/activity-log-manager/appdialog-fixes/+merge/97629
Your team Activity Log Manager is requested to review the proposed merge of 
lp:~cando/activity-log-manager/appdialog-fixes into lp:activity-log-manager.
=== modified file 'src/applications-widget.vala'
--- src/applications-widget.vala	2012-03-12 14:45:32 +
+++ src/applications-widget.vala	2012-03-15 12:34:23 +
@@ -347,20 +347,34 @@
 			this.pack_start (scroll);
 		}
 		
-		public static Gdk.Pixbuf? get_pixbuf_from_gio_icon (Icon icon, int size=32) {
+		public static Gdk.Pixbuf? get_pixbuf_from_gio_icon (Icon? icon, int size=32) {
 			Gdk.Pixbuf? pix = null;
-			var icon_info = IconTheme.get_default ().lookup_by_gicon (icon ,
-			size,
-			IconLookupFlags.FORCE_SVG);
-			if (icon_info != null) {
-try {
-	pix = icon_info.load_icon ();
-}
-catch (Error e){
-	return null;
-}
-			}
-			
+			IconTheme theme = IconTheme.get_default ();
+			IconInfo icon_info = null;
+			/*If the application hasn't an icon in the current theme
+			  let's use the gtk-execute icon: 
+			  http://developer.gnome.org/gtk3/3.2/gtk3-Stock-Items.html#GTK-STOCK-EXECUTE:CAPS
+			*/
+			if(icon == null) {
+icon_info = theme.lookup_icon ("gtk-execute" ,
+size,
+IconLookupFlags.FORCE_SVG);
+			}
+			else {
+icon_info = theme.lookup_by_gicon (icon ,
+	size,
+	IconLookupFlags.FORCE_SVG);
+if (icon_info == null)
+	icon_info = theme.lookup_icon ("gtk-execute" ,
+size,
+IconLookupFlags.FORCE_SVG);
+			}
+			try {
+pix = icon_info.load_icon ();
+			}
+			catch (Error e){
+return null;
+			}
 			return pix;
 		}
 
@@ -375,7 +389,13 @@
 
 // Insert only when it is empty
 if(this.blocked_apps.lookup(app) == null)
-	this.blocked_apps.insert(app, new AppChooseInfo(app_info.get_id(), app_info.get_name(), pix, "", 0));
+	this.blocked_apps.insert(app, new AppChooseInfo(
+		app_info.get_id(),
+		app_info.get_name(),
+		pix,
+		"",
+		0,
+		0));
 			}
 		}
 		
@@ -466,7 +486,7 @@
 		
 		private void set_up_ui () {
 			var column_pix_name = new TreeViewColumn ();
-			column_pix_name.set_title ("Name");
+			column_pix_name.set_title (_("Name"));
 			this.treeview.append_column (column_pix_name);
 			var pix_rend = new CellRendererPixbuf ();
 			column_pix_name.pack_start (pix_rend, false);
@@ -477,10 +497,11 @@
 			column_pix_name.add_attribute (name_rend, "text", 0);
 			column_pix_name.set_resizable (true);
 			column_pix_name.set_min_width (200);
+			column_pix_name.set_max_width (400);
 			column_pix_name.set_sort_column_id (0);
 
 			var column_used_name = new TreeViewColumn ();
-			column_used_name.set_title ("Last Used");
+			column_used_name.set_title (_("Last Used"));
 			this.treeview.append_column (column_used_name);
 			var used_rend = new CellRendererText ();
 			used_rend.set_property ("ellipsize", Pango.EllipsizeMode.END);
@@ -488,11 +509,12 @@
 			column_used_name.add_attribute (used_rend, "text", 3);
 			column_used_name.set_resizable (true);
 			column_used_name.set_min_width (200);
+			column_used_name.set_max_width (400);
 			column_used_name.set_sort_column_id (4);
-			used_rend.set_property("xalign", 1);
+			used_rend.set_property("xalign", 0);
 			
 			var column_usage_name = new TreeViewColumn ();
-			column_usage_name.set_title ("Activity");
+			column_usage_name.set_title (_("Activity"));
 			this.treeview.append_column (column_usage_name);
 			var usage_rend = new UsageCellRenderer ();
 			column_usage_name.pack_start (usage_rend, true);
@@ -557,6 +579,18 @@
 			}
 		}
 		
+		private int compare_dates(DateTime now, DateTime time) {
+			int res = -1;
+			int now_y, now_m, now_d, time_y, time_m, time_d;
+			now.get_ymd(out now_y, out now_m, out now_d); 
+			time.get_ymd(out time_y, out time_m, out time_d);
+			if (now_y == time_y && now_m == time_m && now_d == time_d)
+return 0;
+			else if (now_y == time_y && now_m == time_m && now_d == time_d + 1)
+return 1;
+			return res;
+		}
+		
 		public void handle_app_population(HashTable all_actors) {
 			all_actors_list = all_actors;
 
@@ -570,18 +604,27 @@
 			{
 string id = app_info.get_id ();
 int64? last_accessed_time = 

Re: [Zeitgeist] [Merge] lp:~cando/activity-log-manager/appdialog-fixes into lp:activity-log-manager

2012-03-15 Thread Stefano Candori
I've also added the udpated .pot files.
Currently launchpad is configured to import the pot file from the 0.8 
series...we should udpate this, right?
-- 
https://code.launchpad.net/~cando/activity-log-manager/appdialog-fixes/+merge/97629
Your team Activity Log Manager is requested to review the proposed merge of 
lp:~cando/activity-log-manager/appdialog-fixes into lp:activity-log-manager.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~cando/activity-log-manager/appdialog-fixes into lp:activity-log-manager

2012-03-15 Thread Stefano Candori
Cool..review on the branch? :)

-- 
https://code.launchpad.net/~cando/activity-log-manager/appdialog-fixes/+merge/97629
Your team Activity Log Manager is requested to review the proposed merge of 
lp:~cando/activity-log-manager/appdialog-fixes into lp:activity-log-manager.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


Re: [Zeitgeist] [Merge] lp:~kelemeng/activity-log-manager/bug958483 into lp:activity-log-manager

2012-03-18 Thread Stefano Candori
Manish, those gettext changes are already in my branch.. could you review
my merge request?

Stefano Candori
Il giorno 18/mar/2012 19:47, "Manish Sinha (मनीष सिन्हा" <
manishsi...@ubuntu.com> ha scritto:

> Review: Needs Fixing
>
> > var last_accessed = time.format(_("%e %B %Y"));
>
> These are string formatting for how the time should be rendered. It
> doesn't get printed on the screen. It doesn't need to be translated.
>
> > var date_string = date.format(_("%d %B %Y"));
> Same
>
> > var date_string = date.format(_("%d %B %Y"));
> Same
> --
>
> https://code.launchpad.net/~kelemeng/activity-log-manager/bug958483/+merge/98096
> Your team Activity Log Manager is subscribed to branch
> lp:activity-log-manager.
>

-- 
https://code.launchpad.net/~kelemeng/activity-log-manager/bug958483/+merge/98096
Your team Activity Log Manager is subscribed to branch lp:activity-log-manager.

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Zeitgeist] [Bug 929644] Re: Add filesystem crawler support

2012-03-19 Thread Stefano Candori
Uh? Can you explain it a little more Manish? I don't remember such a
feature... :)

-- 
You received this bug notification because you are a member of Activity
Log Manager, which is the registrant for Activity Log Manager.
https://bugs.launchpad.net/bugs/929644

Title:
  Add filesystem crawler support

Status in Activity Log Manager for Zeitgeist:
  Confirmed

Bug description:
  Previous version of activity-log-manager,we had a feature to crawl the
  filesystem and look for files which have not been logged. It needs to
  be added

To manage notifications about this bug go to:
https://bugs.launchpad.net/activity-log-manager/+bug/929644/+subscriptions

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp