Removed unneeded execute() member

This commit is contained in:
Sanel Zukan 2009-07-09 14:11:28 +00:00
parent b6d080e414
commit a425c03182
2 changed files with 2 additions and 9 deletions

View File

@ -113,11 +113,11 @@ static void settings_changed_cb(void* data) {
} }
static void background_conf_cb(Fl_Widget*, void*) { static void background_conf_cb(Fl_Widget*, void*) {
Desktop::instance()->execute("ede-desktop-conf"); edelib::run_async("ede-launch ede-desktop-conf");
} }
static void icons_conf_cb(Fl_Widget*, void*) { static void icons_conf_cb(Fl_Widget*, void*) {
Desktop::instance()->execute("ede-desktop-conf --icons"); edelib::run_async("ede-launch \"ede-desktop-conf --icons\"");
} }
static int desktop_xmessage_handler(int event) { static int desktop_xmessage_handler(int event) {
@ -923,11 +923,6 @@ void Desktop::dir_watch(const char* dir, const char* changed, int flags) {
E_DEBUG(E_STRLOC ": %s changed with %i\n", changed, flags); E_DEBUG(E_STRLOC ": %s changed with %i\n", changed, flags);
} }
void Desktop::execute(const char* cmd) {
E_ASSERT(cmd != NULL);
edelib::run_async(cmd);
}
int Desktop::handle(int event) { int Desktop::handle(int event) {
switch(event) { switch(event) {
case FL_FOCUS: case FL_FOCUS:

View File

@ -163,8 +163,6 @@ public:
void dir_watch(const char* dir, const char* changed, int flags); void dir_watch(const char* dir, const char* changed, int flags);
void dir_watch_on(void) { do_dirwatch = true; } void dir_watch_on(void) { do_dirwatch = true; }
void dir_watch_off(void) { do_dirwatch = false; } void dir_watch_off(void) { do_dirwatch = false; }
void execute(const char* cmd);
}; };
#endif #endif