~valide/valide/dev

« back to all changes in this revision

Viewing changes to plugins/opened-documents/opened-documents.vala

  • Committer: Nicolas Joseph
  • Date: 2011-03-10 17:40:01 UTC
  • mfrom: (593.1.1 valide)
  • Revision ID: nicolas.joseph@valaide.org-20110310174001-v3rz985ay5qvkehy
monkey 2011-02-20 Update the rest deprecated code (vala-0.11.6)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* opened-documents.vala
2
2
 *
3
 
 * Copyright (C) 2009-2010 Nicolas Joseph
 
3
 * Copyright (C) 2009-2011 Nicolas Joseph
4
4
 *
5
5
 * This program is free software: you can redistribute it and/or modify
6
6
 * it under the terms of the GNU General Public License as published by
16
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
17
 *
18
18
 * Author:
19
 
 *      Nicolas Joseph <nicolas.joseph@valaide.org>
 
19
 *      Nicolas Joseph <nicolas.joseph@valaide.org>
20
20
 */
21
21
 
22
22
using Valide;
60
60
    {
61
61
      int page_num;
62
62
 
63
 
      page_num = tokens[2].to_int ();
 
63
      page_num = int.parse (tokens[2]);
64
64
      this.window.documents.set_current_page (page_num - 1);
65
65
    }
66
66
    else
204
204
    /* create some nice padding */
205
205
    this.box.set_spacing (2);
206
206
    this.box.set_border_width (2);
207
 
 
 
207
 
208
208
    /* create and pack tree view */
209
209
    scrolled = new Gtk.ScrolledWindow (null, null);
210
210
    scrolled.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);