~gnome-zeitgeist/gnome-activity-journal/debug

« back to all changes in this revision

Viewing changes to src/activity_widgets.py

  • Committer: Seif Lotfy
  • Date: 2010-08-19 13:19:32 UTC
  • Revision ID: seif@wumbo-20100819131932-bhlcpxvjiotnu8xm
fix empty names2

Show diffs side-by-side

added added

removed removed

Lines of Context:
396
396
            self.o_style = self.style.copy()
397
397
        rc_style = self.o_style.copy()
398
398
        text = self.content_obj.text.replace("&", "&")
 
399
        if text.strip() == "":
 
400
            text = self.content_obj.uri.replace("&", "&")
399
401
        if self.content_obj.matches_search:
400
402
            self.label.set_markup("<span size='large'><b>" + text + "</b></span>")
401
403
            color = rc_style.base[gtk.STATE_SELECTED]
408
410
    def __clear(self, *args):
409
411
        self.content_obj.matches_search = False
410
412
        text = self.content_obj.text.replace("&", "&amp;")
 
413
        if text.strip() == "":
 
414
            text = self.content_obj.uri.replace("&", "&amp;")        
411
415
        rc_style = self.style
412
416
        self.label.set_markup("<span>" + text + "</span>")
413
417
        color = rc_style.text[gtk.STATE_NORMAL]