From a425c03182c6e2ab871e57ce1fe6bbff62b64669 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Thu, 9 Jul 2009 14:11:28 +0000 Subject: [PATCH] Removed unneeded execute() member --- ede-desktop/ede-desktop.cpp | 9 ++------- ede-desktop/ede-desktop.h | 2 -- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/ede-desktop/ede-desktop.cpp b/ede-desktop/ede-desktop.cpp index 6522042..1c1bb5d 100644 --- a/ede-desktop/ede-desktop.cpp +++ b/ede-desktop/ede-desktop.cpp @@ -113,11 +113,11 @@ static void settings_changed_cb(void* data) { } 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*) { - Desktop::instance()->execute("ede-desktop-conf --icons"); + edelib::run_async("ede-launch \"ede-desktop-conf --icons\""); } 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); } -void Desktop::execute(const char* cmd) { - E_ASSERT(cmd != NULL); - edelib::run_async(cmd); -} - int Desktop::handle(int event) { switch(event) { case FL_FOCUS: diff --git a/ede-desktop/ede-desktop.h b/ede-desktop/ede-desktop.h index b120443..336b0f5 100644 --- a/ede-desktop/ede-desktop.h +++ b/ede-desktop/ede-desktop.h @@ -163,8 +163,6 @@ public: void dir_watch(const char* dir, const char* changed, int flags); void dir_watch_on(void) { do_dirwatch = true; } void dir_watch_off(void) { do_dirwatch = false; } - - void execute(const char* cmd); }; #endif