diff options
author | Lars Kotthoff <larsko@uwyo.edu> | 2018-11-11 16:54:21 -0700 |
---|---|---|
committer | Gaute Hope <eg@gaute.vetsj.com> | 2018-11-22 19:37:32 +0100 |
commit | b0857d2ef307a1bbb1a7186de2691a40bec733b4 (patch) | |
tree | 380513a65b8cfa067baef2d1430c165432dbb1b6 /src | |
parent | 01b383c9963e1c0cff52c9510fe07086e2b0de0a (diff) |
revert some changes
Diffstat (limited to 'src')
-rw-r--r-- | src/modes/edit_message.cc | 2 | ||||
-rw-r--r-- | src/modes/thread_index/thread_index.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/modes/edit_message.cc b/src/modes/edit_message.cc index e5a9c16..12f688d 100644 --- a/src/modes/edit_message.cc +++ b/src/modes/edit_message.cc @@ -212,7 +212,7 @@ namespace Astroid { } # endif - thread_view = new ThreadView(main_window, true); + thread_view = Gtk::manage(new ThreadView(main_window, true)); //thread_rev->add (*thread_view); editor_box->pack_start (*thread_view, false, false, 2); diff --git a/src/modes/thread_index/thread_index.cc b/src/modes/thread_index/thread_index.cc index f0c06db..9ff982c 100644 --- a/src/modes/thread_index/thread_index.cc +++ b/src/modes/thread_index/thread_index.cc @@ -32,10 +32,10 @@ namespace Astroid { list_store = Glib::RefPtr<ThreadIndexListStore>(new ThreadIndexListStore ()); queryloader.list_store = list_store; - list_view = new ThreadIndexListView (this, list_store); + list_view = Gtk::manage(new ThreadIndexListView (this, list_store)); queryloader.list_view = list_view; - scroll = new ThreadIndexScrolled (main_window, list_store, list_view); + scroll = Gtk::manage(new ThreadIndexScrolled (main_window, list_store, list_view)); list_view->set_sort_type (queryloader.sort); @@ -230,10 +230,10 @@ namespace Astroid { if (new_window) { MainWindow * nmw = astroid->open_new_window (false); - tv = new ThreadView (nmw); + tv = Gtk::manage(new ThreadView (nmw)); nmw->add_mode (tv); } else if (new_tab) { - tv = new ThreadView (main_window); + tv = Gtk::manage(new ThreadView (main_window)); main_window->add_mode (tv); } else { LOG (debug) << "ti: init paned tv"; |