~ubuntu-branches/ubuntu/natty/shotwell/natty

« back to all changes in this revision

Viewing changes to .pc/01_lpi.patch/src/EventsDirectoryPage.vala

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-06-29 12:47:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100629124716-1hb2tj31ho45ttu9
Tags: 0.6.0-0ubuntu1
* New upstream release
* debian/watch:
  - Now tracking stable release

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        int count = event.get_photo_count();
64
64
        string count_text = ngettext("%d Photo", "%d Photos", count).printf(count);
65
65
        
66
 
        return "<b>%s</b>\n%s".printf(Markup.escape_text(event.get_name()),
67
 
            Markup.escape_text(count_text));
 
66
        return "<b>%s</b>\n%s".printf(guarded_markup_escape_text(event.get_name()),
 
67
            guarded_markup_escape_text(count_text));
68
68
    }
69
69
 
70
70
    public override void exposed() {
241
241
        return actions;
242
242
    }
243
243
    
244
 
    public override void on_item_activated(CheckerboardItem item) {
 
244
    public override void on_item_activated(CheckerboardItem item, CheckerboardPage.Activator 
 
245
        activator, CheckerboardPage.KeyboardModifiers modifiers) {
245
246
        EventDirectoryItem event = (EventDirectoryItem) item;
246
247
        LibraryWindow.get_app().switch_to_event(event.event);
247
248
    }