From f5e6768f475b9e04f4f17d253925b6d1f08c80af Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Tue, 18 Oct 2011 08:45:55 +0000 Subject: [PATCH] Small refactoring --- ede-desktop/ede-desktop.cpp | 10 +++++----- ede-desktop/ede-desktop.h | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ede-desktop/ede-desktop.cpp b/ede-desktop/ede-desktop.cpp index 2de8b09..e550a71 100644 --- a/ede-desktop/ede-desktop.cpp +++ b/ede-desktop/ede-desktop.cpp @@ -145,14 +145,14 @@ static void desktop_message_handler(int action, Window xid, void *data) { } } -Desktop::Desktop() : DESKTOP_WINDOW(0, 0, 100, 100, "") { +Desktop::Desktop() : EDE_DESKTOP_WINDOW(0, 0, 100, 100, "") { selection_x = selection_y = 0; moving = false; do_dirwatch = true; #ifdef USE_EDELIB_WINDOW edelib::foreign_callback_add(this, "ede-desktop", settings_changed_cb); - /* DESKTOP_WINDOW::single_bufer(true); */ + /* EDE_DESKTOP_WINDOW::single_bufer(true); */ #endif selbox = new SelectionOverlay; @@ -260,7 +260,7 @@ Desktop* Desktop::instance(void) { void Desktop::show(void) { if(shown()) - return DESKTOP_WINDOW::show(); + return EDE_DESKTOP_WINDOW::show(); window_xid_create(this, make_me_desktop); } @@ -873,7 +873,7 @@ void Desktop::draw(void) { */ clear_xoverlay(); - DESKTOP_WINDOW::draw(); + EDE_DESKTOP_WINDOW::draw(); E_DEBUG(E_STRLOC ": REDRAW ALL\n"); } @@ -1089,7 +1089,7 @@ int Desktop::handle(int event) { case FL_ENTER: case FL_LEAVE: case FL_MOVE: - return DESKTOP_WINDOW::handle(event); + return EDE_DESKTOP_WINDOW::handle(event); default: break; diff --git a/ede-desktop/ede-desktop.h b/ede-desktop/ede-desktop.h index 00ed2da..efa4d21 100644 --- a/ede-desktop/ede-desktop.h +++ b/ede-desktop/ede-desktop.h @@ -15,11 +15,11 @@ #ifdef USE_EDELIB_WINDOW # include -# define DESKTOP_WINDOW edelib::Window +# define EDE_DESKTOP_WINDOW edelib::Window #else # include # include -# define DESKTOP_WINDOW Fl_Window +# define EDE_DESKTOP_WINDOW Fl_Window #endif #include @@ -88,7 +88,7 @@ typedef edelib::list::iterator DesktopIconListIter; typedef edelib::list StringList; typedef edelib::list::iterator StringListIter; -class Desktop : public DESKTOP_WINDOW { +class Desktop : public EDE_DESKTOP_WINDOW { private: static Desktop* pinstance;