From: dooglus Date: Thu, 4 Oct 2007 01:51:08 +0000 (+0000) Subject: Fix the bug that caused almost everything in the caret menu of the 'other' canvas... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2cc368cc2c990b39089a8898f6dc03e07970ba36;p=synfig.git Fix the bug that caused almost everything in the caret menu of the 'other' canvas to be disabled when the focused canvas was closed. Use present() to present the other canvas, rather than manipulating selected_canvas_view directly. This allows CanvasView::on_focus_in_event() to run and call insert_action_group() to re-enable the menu. git-svn-id: http://svn.voria.com/code@836 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/instance.cpp b/synfig-studio/trunk/src/gtkmm/instance.cpp index 0c0f7ac..2c63496 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.cpp +++ b/synfig-studio/trunk/src/gtkmm/instance.cpp @@ -365,10 +365,7 @@ Instance::close() studio::App::set_selected_instance(0); } else - { - studio::App::set_selected_canvas_view(studio::App::instance_list.front()->canvas_view_list().front()); - //studio::App::set_selected_instance(studio::App::instance_list.front()); - } + studio::App::instance_list.front()->canvas_view_list().front()->present(); }