Skip to content

Commit

Permalink
Cleaned up some code surrounding the new changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Sipes committed Mar 17, 2015
1 parent 3a808af commit 1cbb24e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Notebook.vala
Expand Up @@ -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;

Expand All @@ -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)=> {
Expand All @@ -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, "");
Expand Down

0 comments on commit 1cbb24e

Please sign in to comment.