mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Updated file
This commit is contained in:
parent
fa903ac611
commit
e9b69deae3
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Desktop configuration tool
|
* Desktop configuration tool
|
||||||
* Part of Equinox Desktop Environment (EDE).
|
* Part of Equinox Desktop Environment (EDE).
|
||||||
* Copyright (c) 2000-2007 EDE Authors.
|
* Copyright (c) 2007-2008 EDE Authors.
|
||||||
*
|
*
|
||||||
* This program is licensed under terms of the
|
* This program is licensed under terms of the
|
||||||
* GNU General Public License version 2 or newer.
|
* GNU General Public License version 2 or newer.
|
||||||
@ -17,15 +17,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <edelib/Nls.h>
|
|
||||||
#include <edelib/Color.h>
|
|
||||||
#include <edelib/Window.h>
|
|
||||||
#include <edelib/Resource.h>
|
|
||||||
#include <edelib/Debug.h>
|
|
||||||
#include <edelib/Util.h>
|
|
||||||
#include <edelib/FontChooser.h>
|
|
||||||
#include <edelib/Directory.h>
|
|
||||||
|
|
||||||
#include <FL/Fl.H>
|
#include <FL/Fl.H>
|
||||||
#include <FL/Fl_Tabs.H>
|
#include <FL/Fl_Tabs.H>
|
||||||
#include <FL/Fl_Group.H>
|
#include <FL/Fl_Group.H>
|
||||||
@ -42,9 +33,17 @@
|
|||||||
#include <FL/Fl_Menu_Button.h>
|
#include <FL/Fl_Menu_Button.h>
|
||||||
#include <FL/x.h>
|
#include <FL/x.h>
|
||||||
|
|
||||||
#define EICOMAN_UID 0x10
|
#include <edelib/Nls.h>
|
||||||
//#define EICOMAN_CONFIG "../eiconman/eiconman.conf"
|
#include <edelib/Color.h>
|
||||||
#define EICOMAN_CONFIG "ede/eiconman"
|
#include <edelib/Window.h>
|
||||||
|
#include <edelib/Resource.h>
|
||||||
|
#include <edelib/Debug.h>
|
||||||
|
#include <edelib/Util.h>
|
||||||
|
#include <edelib/FontChooser.h>
|
||||||
|
#include <edelib/Directory.h>
|
||||||
|
|
||||||
|
#define EDE_DESKTOP_UID 0x10
|
||||||
|
#define EDE_DESKTOP_CONFIG "ede/ede-desktop"
|
||||||
|
|
||||||
Fl_Menu_Item mode_menu[] = {
|
Fl_Menu_Item mode_menu[] = {
|
||||||
{_("Center"), 0, 0},
|
{_("Center"), 0, 0},
|
||||||
@ -269,14 +268,14 @@ void apply_cb(Fl_Widget*, void* w) {
|
|||||||
conf.set("Icons", "LabelVisible", icon_show_label->value());
|
conf.set("Icons", "LabelVisible", icon_show_label->value());
|
||||||
conf.set("Icons", "OneClickExec", engage_with_one_click->value());
|
conf.set("Icons", "OneClickExec", engage_with_one_click->value());
|
||||||
|
|
||||||
if(conf.save(EICOMAN_CONFIG))
|
if(conf.save(EDE_DESKTOP_CONFIG))
|
||||||
edelib::Window::update_settings(EICOMAN_UID);
|
edelib::Window::update_settings(EDE_DESKTOP_UID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ok_cb(Fl_Widget*, void* w) {
|
void ok_cb(Fl_Widget*, void* w) {
|
||||||
edelib::Window* win = (edelib::Window*)w;
|
edelib::Window* win = (edelib::Window*)w;
|
||||||
apply_cb(0, win);
|
apply_cb(0, win);
|
||||||
/* a hack so edesktopconf can send a message before it was closed */
|
/* a hack so ede-desktop-conf can send a message before it was closed */
|
||||||
sleep(1);
|
sleep(1);
|
||||||
win->hide();
|
win->hide();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user