CFrameBuffer: outsource code for icon path detecting

Unified handling and makes it possible to use in other objects.


Origin commit data
------------------
Commit: 97343d1190
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-03-17 (Thu, 17 Mar 2016)
This commit is contained in:
2016-03-17 10:25:26 +01:00
parent 6e9f947b8f
commit b82a6b0ed4
2 changed files with 15 additions and 8 deletions

View File

@@ -226,6 +226,7 @@ class CFrameBuffer : public sigc::trackable
void setIconBasePath(const std::string & iconPath);
std::string getIconBasePath(){return iconBasePath;};
std::string getIconPath(std::string icon_name, std::string file_type = "png");
void getIconSize(const char * const filename, int* width, int *height);
/* h is the height of the target "window", if != 0 the icon gets centered in that window */