From 3082eae163f0fa3d41b4b59a4050572bc38aba74 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 11 Aug 2012 10:42:51 -0300 Subject: [PATCH] Minor changes: Removing dependencies with allegro.h file. --- src/commands/cmd_about.cpp | 2 -- src/commands/cmd_close_file.cpp | 12 ++++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/commands/cmd_about.cpp b/src/commands/cmd_about.cpp index ab4d81f9b..db84a041b 100644 --- a/src/commands/cmd_about.cpp +++ b/src/commands/cmd_about.cpp @@ -18,8 +18,6 @@ #include "config.h" -#include - #include "base/bind.h" #include "ui/gui.h" diff --git a/src/commands/cmd_close_file.cpp b/src/commands/cmd_close_file.cpp index ef9e962ad..6242ce95f 100644 --- a/src/commands/cmd_close_file.cpp +++ b/src/commands/cmd_close_file.cpp @@ -18,19 +18,19 @@ #include "config.h" -#include "ui/gui.h" -#include -#include - #include "app.h" +#include "base/path.h" #include "commands/command.h" #include "commands/commands.h" #include "document_wrappers.h" #include "modules/editors.h" #include "raster/sprite.h" +#include "ui/gui.h" #include "ui_context.h" #include "widgets/status_bar.h" +#include + using namespace ui; static bool close_active_document(Context* context); @@ -129,7 +129,7 @@ static bool close_active_document(Context* context) while (document->isModified()) { // ask what want to do the user with the changes in the sprite int ret = Alert::show("Warning<getFilename())); + base::get_file_name(document->getFilename()).c_str()); if (ret == 1) { // "save": save the changes @@ -164,7 +164,7 @@ static bool close_active_document(Context* context) ActiveDocumentWriter document(context); StatusBar::instance() ->setStatusText(0, "Sprite '%s' closed.", - get_filename(document->getFilename())); + base::get_file_name(document->getFilename()).c_str()); document.deleteDocument(); } return true;