~elementary-apps/pantheon-files/trunk

« back to all changes in this revision

Viewing changes to src/BookmarkList.vala

  • Committer: jeremy at elementaryos
  • Date: 2015-01-01 19:31:53 UTC
  • mto: (1643.2.58 fix-network-browsing)
  • mto: This revision was merged to the branch mainline in revision 1733.
  • Revision ID: jeremy@elementaryos.org-20150101193153-tfspj403x9tinh1c
Allow bookmarking of all mounted network locations by context menu

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
            return instance;
84
84
        }
85
85
 
86
 
        public void insert_uri (string uri, uint index) {
87
 
            insert_item_internal (new Bookmark.from_uri (uri, null), index);
 
86
        public void insert_uri (string uri, uint index, string? label = null) {
 
87
            insert_item_internal (new Bookmark.from_uri (uri, label), index);
88
88
            save_bookmarks_file ();
89
89
        }
90
90
 
91
 
        public void insert_uri_at_end (string uri) {
92
 
            append_internal (new Bookmark.from_uri (uri, null));
 
91
        public void insert_uri_at_end (string uri, string? label = null) {
 
92
            append_internal (new Bookmark.from_uri (uri, label));
93
93
            save_bookmarks_file ();
94
94
        }
95
95