From 2898f9ea5376fd733e6d8739ee593d3d2fbdebc5 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Fri, 21 Oct 2011 16:00:16 +0000 Subject: [PATCH] Use edelib::Window --- evoke/Logout.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/evoke/Logout.cpp b/evoke/Logout.cpp index 6bccbf7..985c561 100644 --- a/evoke/Logout.cpp +++ b/evoke/Logout.cpp @@ -10,15 +10,17 @@ * See COPYING for details. */ -#include #include #include #include #include +#include #include #include "Logout.h" +EDELIB_NS_USING_AS(Window, EdeWindow) + /* Note that order of initialized items is important so LOGOUT_OPT_XXX can work */ struct LogoutOptions { const char* opt_short; @@ -29,7 +31,7 @@ struct LogoutOptions { { _("Shut down"), _("This option will shut down the computer closing all running programs") } }; -static Fl_Window* win; +static EdeWindow* win; static Fl_Box* description; static int ret_option; @@ -53,7 +55,7 @@ static void option_cb(Fl_Widget*, void* o) { int logout_dialog_show(int screen_w, int screen_h, int opt) { ret_option = LOGOUT_RET_LOGOUT; - win = new Fl_Window(335, 180, _("Quit EDE?")); + win = new EdeWindow(335, 180, _("Quit EDE?")); win->begin(); Fl_Box* b1 = new Fl_Box(10, 9, 315, 25, _("How do you want to quit EDE?")); b1->labelfont(1);