diff options
author | Perberos <[email protected]> | 2011-11-08 16:22:08 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-11-08 16:22:08 -0300 |
commit | f45852ab2a7126f354079499fc8b03976c0eab27 (patch) | |
tree | 885c32d804d3c970c5da41a5527882e8a956b42d /src/iconthemewrapper.h | |
download | mate-system-monitor-f45852ab2a7126f354079499fc8b03976c0eab27.tar.bz2 mate-system-monitor-f45852ab2a7126f354079499fc8b03976c0eab27.tar.xz |
initial
Diffstat (limited to 'src/iconthemewrapper.h')
-rw-r--r-- | src/iconthemewrapper.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/iconthemewrapper.h b/src/iconthemewrapper.h new file mode 100644 index 0000000..6127f01 --- /dev/null +++ b/src/iconthemewrapper.h @@ -0,0 +1,23 @@ +#ifndef H_PROCMAN_ICONTHEMEWRAPPER_H_1185707711 +#define H_PROCMAN_ICONTHEMEWRAPPER_H_1185707711 + +#include <glibmm/refptr.h> +#include <glibmm/ustring.h> +#include <gtkmm/icontheme.h> +#include <gdkmm/pixbuf.h> + +namespace procman +{ + class IconThemeWrapper + { + public: + // returns 0 instead of raising an exception + Glib::RefPtr<Gdk::Pixbuf> + load_icon(const Glib::ustring& icon_name, int size, Gtk::IconLookupFlags flags) const; + + const IconThemeWrapper* operator->() const + { return this; } + }; +} + +#endif // H_PROCMAN_ICONTHEMEWRAPPER_H_1185707711 |