X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdockdialog.cpp;h=614e8dbb0c1edf122327edb6ddc309d64a8f60e1;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=a445309fef84fdefd45a8b0a3f37f9bbcd7c190e;hpb=49043cce462f8c5320a2d3bf496025b2d32c3c2c;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/dockdialog.cpp b/synfig-studio/trunk/src/gtkmm/dockdialog.cpp index a445309..614e8db 100644 --- a/synfig-studio/trunk/src/gtkmm/dockdialog.cpp +++ b/synfig-studio/trunk/src/gtkmm/dockdialog.cpp @@ -6,7 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley -** Copyright (c) 2007 Chris Moore +** Copyright (c) 2007, 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -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,7 +152,7 @@ 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 @@ -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")); }