X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdock_canvases.cpp;h=e1af84ea34ca230086400d28eeb51a5e826bd0bc;hb=29b64838a7e7b91aa32c8a3f4a69e64b31d5558d;hp=e6c8d01a845509e9180e5e5b4c8b9754688f15b4;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/dock_canvases.cpp b/synfig-studio/trunk/src/gtkmm/dock_canvases.cpp index e6c8d01..e1af84e 100644 --- a/synfig-studio/trunk/src/gtkmm/dock_canvases.cpp +++ b/synfig-studio/trunk/src/gtkmm/dock_canvases.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file dialog_history.cpp ** \brief Template File ** ** $Id: dock_canvases.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -37,7 +38,7 @@ using namespace std; using namespace etl; -using namespace sinfg; +using namespace synfig; using namespace studio; /* === M A C R O S ========================================================= */ @@ -49,7 +50,7 @@ using namespace studio; /* === M E T H O D S ======================================================= */ Dock_Canvases::Dock_Canvases(): - Dockable("canvases",_("Canvas Browser"),Gtk::StockID("sinfg-canvas")) + Dockable("canvases",_("Canvas Browser"),Gtk::StockID("synfig-canvas")) { App::signal_instance_created().connect(sigc::mem_fun(*this,&studio::Dock_Canvases::new_instance)); @@ -61,7 +62,7 @@ Dock_Canvases::Dock_Canvases(): /* add_button( - Gtk::StockID("sinfg-canvas_new"), + Gtk::StockID("synfig-canvas_new"), _("Insert a new canvas") )->signal_clicked().connect( sigc::mem_fun( @@ -81,7 +82,7 @@ Dock_Canvases::Dock_Canvases(): ); add_button( - Gtk::StockID("sinfg-rename"), + Gtk::StockID("synfig-rename"), _("Rename selected canvas") )->signal_clicked().connect( sigc::mem_fun( @@ -139,7 +140,7 @@ Dock_Canvases::get_selected_canvas_view() return get_selected_instance()->find_canvas_view(get_selected_canvas()); } -etl::loose_handle +etl::loose_handle Dock_Canvases::get_selected_canvas() { Glib::RefPtr selection=canvas_tree->get_selection(); @@ -149,7 +150,7 @@ Dock_Canvases::get_selected_canvas() studio::Instance::CanvasTreeModel canvas_tree_model; - return static_cast >((*selection->get_selected())[canvas_tree_model.canvas]); + return static_cast >((*selection->get_selected())[canvas_tree_model.canvas]); } @@ -202,8 +203,8 @@ Dock_Canvases::new_instance(etl::handle instance) etl::loose_handle loose_instance(instance); - instance->sinfgapp::Instance::signal_filename_changed().connect(sigc::mem_fun(*this,&Dock_Canvases::refresh_instances)); - instance->sinfgapp::Instance::signal_filename_changed().connect( + instance->synfigapp::Instance::signal_filename_changed().connect(sigc::mem_fun(*this,&Dock_Canvases::refresh_instances)); + instance->synfigapp::Instance::signal_filename_changed().connect( sigc::bind >( sigc::mem_fun(*this,&Dock_Canvases::set_selected_instance), loose_instance