From a735fa7e8433a306062bab05e1ffff0e4d619a27 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Fri, 20 Jun 2014 09:29:18 +0000 Subject: [PATCH] Added logout dialog, confirmation is now binded to Enter key. --- evoke/EvokeService.cpp | 2 ++ evoke/Logout.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/evoke/EvokeService.cpp b/evoke/EvokeService.cpp index 09a27a5..41f25bd 100644 --- a/evoke/EvokeService.cpp +++ b/evoke/EvokeService.cpp @@ -27,6 +27,8 @@ #include #include +#include + #if EDELIB_HAVE_DBUS #include #include diff --git a/evoke/Logout.cpp b/evoke/Logout.cpp index 985c561..3e15d94 100644 --- a/evoke/Logout.cpp +++ b/evoke/Logout.cpp @@ -11,7 +11,7 @@ */ #include -#include +#include #include #include #include @@ -78,7 +78,7 @@ int logout_dialog_show(int screen_w, int screen_h, int opt) { c->value(0); description->label(logout_options[0].opt_long); - Fl_Button* ok = new Fl_Button(140, 145, 90, 25, _("&OK")); + Fl_Return_Button* ok = new Fl_Return_Button(140, 145, 90, 25, _("&OK")); ok->callback(ok_cb, c); Fl_Button* cancel = new Fl_Button(235, 145, 90, 25, _("&Cancel")); cancel->callback(cancel_cb);