From b4cf4174a7c21f902a67d55ac658d77c62b3faf2 Mon Sep 17 00:00:00 2001 From: tedjk Date: Tue, 10 Mar 2015 09:01:13 +0100 Subject: [PATCH] push for sprint 3 --- juci/api.cc | 5 +---- juci/window.cc | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/juci/api.cc b/juci/api.cc index 425b1f5..834ffee 100644 --- a/juci/api.cc +++ b/juci/api.cc @@ -120,7 +120,7 @@ void libjuci::IterToWordEnd(Gtk::TextIter &iter) { } Glib::RefPtr libjuci::BufferFromNotebook() { - //TODO forgie: make sure it does not get the buffer to the last created textview. + //finding focused view int i = 0; while(!libjuci::ApiServiceProvider::notebook_->source_vec_.at(i)->view().has_focus()) { i++; @@ -131,6 +131,3 @@ Glib::RefPtr libjuci::BufferFromNotebook() { Gtk::TextIter libjuci::IterFromNotebook() { return libjuci::BufferFromNotebook()->get_insert()->get_iter(); } - - - diff --git a/juci/window.cc b/juci/window.cc index 3919c47..2cab213 100644 --- a/juci/window.cc +++ b/juci/window.cc @@ -32,6 +32,7 @@ Window::Window() : } // Window constructor void Window::OnWindowHide(){ //TODO forgie: find out how to 'remove' the pointers + //TODO forgie: Make shared_ptr libjuci::ApiServiceProvider::notebook_ = std::shared_ptr(nullptr); libjuci::ApiServiceProvider::menu_ = std::shared_ptr(nullptr); hide();