projects
/
simple-launcher
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed defaults: non-transparent, iconsize = 48
[simple-launcher]
/
launcher-item.h
diff --git
a/launcher-item.h
b/launcher-item.h
index
ec53bb9
..
af40ca2
100644
(file)
--- a/
launcher-item.h
+++ b/
launcher-item.h
@@
-39,6
+39,7
@@
public:
std::string getName(bool translate = true) const { return translate ? translateString(myName) : myName; }
std::string getComment(bool translate = true) const { return translate ? translateString(myComment) : myComment; }
const std::string& getService() const { return myService; }
std::string getName(bool translate = true) const { return translate ? translateString(myName) : myName; }
std::string getComment(bool translate = true) const { return translate ? translateString(myComment) : myComment; }
const std::string& getService() const { return myService; }
+ const std::string& getExec() const { return myExec; }
bool isEnabled(void) const { return myEnabled; }
bool isEnabled(void) const { return myEnabled; }
@@
-52,19
+53,19
@@
public:
}
}
}
}
+ bool checkSanity(void) { return !myName.empty() && (!myService.empty() || !myExec.empty()); }
+
private:
std::string translateString(const std::string& what) const;
private:
std::string translateString(const std::string& what) const;
- bool checkSanity(void) { return !(myName.empty() || myIcon.empty() || myService.empty()); }
-
private:
private:
- std::string myFileName, myName, myComment, myIcon, myService, myTextDomain;
+ std::string myFileName, myName, myComment, myIcon, myService, myExec, myTextDomain;
bool myEnabled;
static GtkIconTheme *ourTheme;
};
bool myEnabled;
static GtkIconTheme *ourTheme;
};
-typedef struct LauncherItems {
+struct LauncherItems {
typedef std::vector<std::string> Names;
typedef std::map<std::string, LauncherItem *> Items;
typedef std::vector<std::string> Names;
typedef std::map<std::string, LauncherItem *> Items;