histogram doesn't show anything

Bug #525798 reported by mtou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Activity Journal
Fix Released
High
Unassigned

Bug Description

Launching GAJ raises gtk warnings and the histogram doesn't show up anything.
It is nonetheless clickable and behaves as expected (browsing 3 other days).

see screen grab.

************
mtou@kaufman:~/zeitgeist$ ./gnome-activity-journal/gnome-activity-journal
Tracker disabled.
/home/mtou/zeitgeist/gnome-activity-journal/src/daywidgets.py:381: GtkWarning: gtk_box_reorder_child: assertion `old_link != NULL' failed
  self.vbox.reorder_child(self.daylabel, 0)
/home/mtou/zeitgeist/gnome-activity-journal/src/daywidgets.py:302: GtkWarning: gtk_box_pack: assertion `child->parent == NULL' failed
  self.view.pack_start(pinbox, False, False)
Traceback (most recent call last):
  File "/home/mtou/zeitgeist/gnome-activity-journal/src/thumbview.py", line 613, in change_style
    color.red = min(65535, color.red * 0.95)
AttributeError: could not write attribute
Traceback (most recent call last):
  File "/home/mtou/zeitgeist/gnome-activity-journal/src/histogram.py", line 243, in _expose
    self.expose(widget, event, context)
  File "/home/mtou/zeitgeist/gnome-activity-journal/src/histogram.py", line 260, in expose
    self.gc = get_gc_from_colormap(widget, 0.6)
  File "/home/mtou/zeitgeist/gnome-activity-journal/src/histogram.py", line 82, in get_gc_from_colormap
    color.red = f(color.red)
AttributeError: could not write attribute

*******************************
Behaviour seen on
* GAJ & zeitgeist on ubuntu Jaunty from the PPA
* both from trunk

Revision history for this message
mtou (emtou) wrote :
Revision history for this message
Randal Barlow (email-tehk) wrote :

I am wondering if this is a issue with gdk.Color not being mutable <2.16 or if line 80 is not returning a gdk.Color.

Revision history for this message
Randal Barlow (email-tehk) wrote :

Fix committed in r649. I cannot test pygtk 2.14.1 on this box, but I suspect if the issue is really the gdk.Color not being mutable this should solve the issue.

Changed in gnome-activity-journal:
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
mtou (emtou) wrote :

Pulled r649 and tested and the same box; histogram now displays correctly. But still some warnings :

pygtk : I'm using python-gtk2 ubuntu package (2.14.1-1ubuntu1) on ubuntu jaunty.

*****************
mtou@kaufman:~/zeitgeist$ ./gnome-activity-journal/gnome-activity-journal
Tracker disabled.
/home/mtou/zeitgeist/gnome-activity-journal/src/daywidgets.py:381: GtkWarning: gtk_box_reorder_child: assertion `old_link != NULL' failed
  self.vbox.reorder_child(self.daylabel, 0)
/home/mtou/zeitgeist/gnome-activity-journal/src/daywidgets.py:302: GtkWarning: gtk_box_pack: assertion `child->parent == NULL' failed
  self.view.pack_start(pinbox, False, False)
Traceback (most recent call last):
  File "/home/mtou/zeitgeist/gnome-activity-journal/src/thumbview.py", line 613, in change_style
    color.red = min(65535, color.red * 0.95)
AttributeError: could not write attribute
/home/mtou/zeitgeist/gnome-activity-journal/src/histogram.py:90: DeprecationWarning: integer argument expected, got float
  color = gtk.gdk.Color(red=red, green=green, blue=blue, pixel=color.pixel)

Revision history for this message
Randal Barlow (email-tehk) wrote :

Fixed in r650

Revision history for this message
mtou (emtou) wrote :

Confirmed : it now works smoothly.

Bug can be closed.

Changed in gnome-activity-journal:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.