mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Added menu entry for ede-preferred-applications. Let it be centered on screen when shown
This commit is contained in:
parent
d0750641ab
commit
a6b055530b
@ -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
|
@ -13,6 +13,7 @@
|
|||||||
#include <edelib/Ede.h>
|
#include <edelib/Ede.h>
|
||||||
#include <edelib/Resource.h>
|
#include <edelib/Resource.h>
|
||||||
#include <edelib/Debug.h>
|
#include <edelib/Debug.h>
|
||||||
|
#include <edelib/WindowUtils.h>
|
||||||
|
|
||||||
#define KNOWN_APP_PREDEFINED 1
|
#define KNOWN_APP_PREDEFINED 1
|
||||||
#include "PredefApps.h"
|
#include "PredefApps.h"
|
||||||
@ -22,6 +23,7 @@
|
|||||||
|
|
||||||
EDELIB_NS_USING_AS(Window, EdeWindow)
|
EDELIB_NS_USING_AS(Window, EdeWindow)
|
||||||
EDELIB_NS_USING(Resource)
|
EDELIB_NS_USING(Resource)
|
||||||
|
EDELIB_NS_USING(window_center_on_screen)
|
||||||
|
|
||||||
AppChoice *browser_choice,
|
AppChoice *browser_choice,
|
||||||
*mail_choice,
|
*mail_choice,
|
||||||
@ -115,6 +117,7 @@ int main(int argc, char** argv) {
|
|||||||
|
|
||||||
/* now load all settings before show */
|
/* now load all settings before show */
|
||||||
load_settings();
|
load_settings();
|
||||||
|
window_center_on_screen(win);
|
||||||
win->show(argc, argv);
|
win->show(argc, argv);
|
||||||
|
|
||||||
return Fl::run();
|
return Fl::run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user