From 1cbb24e089cc3930ed74f6c6e053797fca79a19d Mon Sep 17 00:00:00 2001 From: Ryan Sipes Date: Tue, 17 Mar 2015 10:21:31 -0500 Subject: [PATCH] Cleaned up some code surrounding the new changes. --- src/Notebook.vala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Notebook.vala b/src/Notebook.vala index 7ad2d18..1fa6da3 100644 --- a/src/Notebook.vala +++ b/src/Notebook.vala @@ -26,9 +26,6 @@ public class EvolveNotebook: Gtk.Notebook{ public Gtk.Button newtabbutton; public string null_buffer = ""; public bool use_linenum; - private const Gtk.TargetEntry[] targets = { - {"EvolveJournal.EvolveNotebook", 0,0} - }; public EvolveWindow mother; @@ -39,7 +36,7 @@ public class EvolveNotebook: Gtk.Notebook{ set_scrollable(true); use_linenum = true; - //connect drag drop handlers + //Allow tabs to be moved between notebooks. set_group_name("notebook"); create_window.connect((p, x, y)=> { @@ -54,6 +51,7 @@ public class EvolveNotebook: Gtk.Notebook{ set_subtitle_text(tab); }); + //Beginning of the code for always keeping a tab around, currently causes segfault if window is closed. /*page_removed.connect((c,n)=> { if(this.get_n_pages() <= 0){ this.new_tab(this.null_buffer, false, "");