X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdockdialog.cpp;h=d5a1a82528c66465b92f2b08dbb969bbb7e434e9;hb=ceec3f1ccafc99fa6f929ec47905216b471c92c6;hp=348224909cc1ff0d67ad49b58ceea73c5d3d5701;hpb=4f7ed97f65e0e42ebec5fa0abe76bc2c9bd6c280;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/dockdialog.cpp b/synfig-studio/trunk/src/gtkmm/dockdialog.cpp index 3482249..d5a1a82 100644 --- a/synfig-studio/trunk/src/gtkmm/dockdialog.cpp +++ b/synfig-studio/trunk/src/gtkmm/dockdialog.cpp @@ -50,6 +50,8 @@ #include #include +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -110,7 +112,7 @@ DockDialog::DockDialog(): // Set up the window //set_type_hint(Gdk::WINDOW_TYPE_HINT_UTILITY); - set_title("Dock Dialog"); + set_title(_("Dock Panel")); // Register with the dock manager App::dock_manager->dock_dialog_list_.push_back(this); @@ -150,14 +152,14 @@ DockDialog::~DockDialog() { dock_book_list.front()->clear(); - //! \fixme: UGLY HACK + //! \todo Fix this UGLY HACK // The following line really should be uncommented, // but it causes crashes. Without it, a small // memory hole is created--but at least it doesn't crash // delete dock_book_list.front(); // Oddly enough, the following line should - // theoreticly do the same thing after this + // theoretically do the same thing after this // class is destroyed, but it doesn't seem to // cause a crash. It does, however, trigger this warning: // @@ -442,7 +444,9 @@ DockDialog::refresh_accel_group() bool DockDialog::close() { - synfig::info("DockDialog::close(): DELETED!"); + if (getenv("SYNFIG_DEBUG_DESTRUCTORS")) + synfig::info("DockDialog::close(): Deleted"); + empty_sig.disconnect(); //get_dock_book().clear(); delete this; @@ -556,5 +560,5 @@ DockDialog::refresh_title() set_title(title); } else - set_title(_("Empty Dock Dialog")); + set_title(_("Empty Dock Panel")); }