Added menu entry for ede-preferred-applications. Let it be centered on screen when shown

This commit is contained in:
Sanel Zukan 2011-10-24 09:11:06 +00:00
parent d0750641ab
commit a6b055530b
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Type=Application
Encoding=UTF-8
Exec=ede-preferred-applications
Icon=empty
Categories=X-EDE;Settings;
Name=Preferred Applications
Comment=Configure applications for common tasks

View File

@ -13,6 +13,7 @@
#include <edelib/Ede.h>
#include <edelib/Resource.h>
#include <edelib/Debug.h>
#include <edelib/WindowUtils.h>
#define KNOWN_APP_PREDEFINED 1
#include "PredefApps.h"
@ -22,6 +23,7 @@
EDELIB_NS_USING_AS(Window, EdeWindow)
EDELIB_NS_USING(Resource)
EDELIB_NS_USING(window_center_on_screen)
AppChoice *browser_choice,
*mail_choice,
@ -115,6 +117,7 @@ int main(int argc, char** argv) {
/* now load all settings before show */
load_settings();
window_center_on_screen(win);
win->show(argc, argv);
return Fl::run();