public Notebooks.Notebook GetSelectedNotebook ()
{
Gtk.TreeModel model;
Gtk.TreeIter iter;
Gtk.TreeSelection selection = notebooksTree.Selection;
if (selection == null || selection.GetSelected (out model, out iter) == false)
return null; // Nothing selected
return model.GetValue (iter, 0) as Notebooks.Notebook;
}