From 0b8bbdf0f11007a567c2b5d3837df2dad20ed286 Mon Sep 17 00:00:00 2001 From: mishas Date: Wed, 14 Mar 2007 17:42:26 +0000 Subject: [PATCH] added stub for processing directories with .desktop files git-svn-id: file:///svnroot/simple-launcher/trunk@81 3ba93dab-e023-0410-b42a-de7732cf370a --- simple-launcher.cc | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/simple-launcher.cc b/simple-launcher.cc index cd05b6d..ceddd7c 100644 --- a/simple-launcher.cc +++ b/simple-launcher.cc @@ -54,6 +54,8 @@ private: void loadConfig(); void saveConfig(); + void processDirectory(const std::string&); + bool initWidget(); void updateWidget(); @@ -130,6 +132,10 @@ bool SimpleLauncherApplet::doInit(void *state_data, int *state_size) { loadConfig(); + for (int i = 0 ; ourDirs[i] != NULL ; ++i) { + processDirectory(ourDirs[i]); + } + if (!initWidget()) { return false; } @@ -190,17 +196,6 @@ void SimpleLauncherApplet::loadConfig() { delete buffer; } -#if 0 - for (int i = 0 ; ourFiles[i] != NULL ; ++i) { - LaunchableItem *item = new LaunchableItem(); - - if (item->load(ourFiles[i])) { - myItems.push_back(std::pair(ourFiles[i], item)); - } else { - delete item; - } - } -#endif } void SimpleLauncherApplet::saveConfig() { @@ -214,6 +209,9 @@ void SimpleLauncherApplet::saveConfig() { } } +void SimpleLauncherApplet::processDirectory(const std::string& dirname) { +} + bool SimpleLauncherApplet::initWidget() { myWidget = gtk_frame_new(NULL); -- 1.7.9.5