Center it

This commit is contained in:
Sanel Zukan 2011-11-03 21:48:31 +00:00
parent 765cb4fc2c
commit 04ac1dce37

View File

@ -37,10 +37,11 @@
#include <edelib/MessageBox.h> #include <edelib/MessageBox.h>
#include <edelib/Window.h> #include <edelib/Window.h>
#include <edelib/IconLoader.h> #include <edelib/IconLoader.h>
#include <edelib/WindowUtils.h>
#include <edelib/Ede.h> #include <edelib/Ede.h>
EDELIB_NS_USING_AS(Window, AppWindow) EDELIB_NS_USING_AS(Window, AppWindow)
EDELIB_NS_USING_LIST(14, (String, EDELIB_NS_USING_LIST(15, (String,
DesktopFile, DesktopFile,
IconLoader, IconLoader,
list, list,
@ -51,6 +52,7 @@ EDELIB_NS_USING_LIST(14, (String,
run_async, run_async,
ask, ask,
file_test, file_test,
window_center_on_screen,
FILE_TEST_IS_REGULAR, FILE_TEST_IS_REGULAR,
FILE_TEST_IS_EXECUTABLE, FILE_TEST_IS_EXECUTABLE,
ICON_SIZE_MEDIUM )) ICON_SIZE_MEDIUM ))
@ -208,6 +210,7 @@ static void run_autostart_dialog(DialogEntryList& l) {
cancel->callback(dialog_close_cb, ptr); cancel->callback(dialog_close_cb, ptr);
cancel->take_focus(); cancel->take_focus();
dialog_win->end(); dialog_win->end();
window_center_on_screen(dialog_win);
dialog_win->show(); dialog_win->show();
while(dialog_win->shown()) while(dialog_win->shown())