~elementary-apps/pantheon-files/trunk

« back to all changes in this revision

Viewing changes to src/View/Window.vala

Implements duplicating tab feature with Dynamic Notebook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
            tabs = new Granite.Widgets.DynamicNotebook ();
156
156
            tabs.show_tabs = true;
157
157
            tabs.allow_restoring = true;
 
158
            tabs.allow_duplication = true;
158
159
            tabs.show ();
159
160
 
160
161
            /* Sidebar */
244
245
            tabs.tab_restored.connect ((tab) => {
245
246
                make_new_tab (tab, File.new_for_uri (tab.restore_data));
246
247
            });
 
248
            
 
249
            tabs.tab_duplicated.connect ((tab) => {
 
250
                make_new_tab (null, File.new_for_uri (((tab.page as ViewContainer).get_active_slot ()).location.get_uri ()));
 
251
            });
247
252
 
248
253
            Gtk.Allocation win_alloc;
249
254
            get_allocation (out win_alloc);