Patch from issue 1012: Proposal of an icon theme for RT
This patch add multiple iconset capabilities, on a per theme basis. See comment #61 and #68 from issue 1012 to see how it works.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <options.h>
|
||||
#include <preferences.h>
|
||||
#include <cursormanager.h>
|
||||
#include <rtwindow.h>
|
||||
#include <gtk/gtkwidget.h>
|
||||
|
||||
static EditWindow* editWnd = NULL;
|
||||
@@ -59,12 +60,15 @@ EditWindow* EditWindow::getInstance(RTWindow* p)
|
||||
|
||||
EditWindow::EditWindow (RTWindow* p) : parent(p) , isFullscreen(false) {
|
||||
|
||||
Glib::ustring fName = "logoicon16.png";
|
||||
Glib::ustring fullPath = RTImage::findIconAbsolutePath(fName);
|
||||
|
||||
#ifdef GLIBMM_EXCEPTIONS_ENABLED
|
||||
try { set_default_icon_from_file (argv0+"/images/logoicon16.png");
|
||||
try { set_default_icon_from_file (fullPath);
|
||||
} catch(Glib::Exception& ex) { printf ("%s\n", ex.what().c_str()); }
|
||||
#else
|
||||
{ std::auto_ptr<Glib::Error> error;
|
||||
set_default_icon_from_file (argv0+"/images/logoicon16.png", error);
|
||||
set_default_icon_from_file (fullPath, error);
|
||||
}
|
||||
#endif //GLIBMM_EXCEPTIONS_ENABLED
|
||||
|
||||
|
Reference in New Issue
Block a user