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 <cursormanager.h>
|
||||
#include <options.h>
|
||||
#include <safegtk.h>
|
||||
#include <rtimage.h>
|
||||
|
||||
CursorManager cursorManager;
|
||||
|
||||
@@ -35,10 +36,10 @@ void CursorManager::init (Glib::RefPtr<Gdk::Window> mainWin) {
|
||||
cAdd = new Gdk::Cursor (Gdk::PLUS);
|
||||
cWait = new Gdk::Cursor (Gdk::CLOCK);
|
||||
|
||||
Glib::RefPtr<Gdk::Pixbuf> hand = safe_create_from_file(argv0+"/images/cross22.png");
|
||||
Glib::RefPtr<Gdk::Pixbuf> close_hand = safe_create_from_file(argv0+"/images/closedhand22.png");
|
||||
Glib::RefPtr<Gdk::Pixbuf> wbpick = safe_create_from_file(argv0+"/images/wbpicker16.png");
|
||||
Glib::RefPtr<Gdk::Pixbuf> empty = safe_create_from_file(argv0+"/images/empty.png");
|
||||
Glib::RefPtr<Gdk::Pixbuf> hand = safe_create_from_file("cross22.png");
|
||||
Glib::RefPtr<Gdk::Pixbuf> close_hand = safe_create_from_file("closedhand22.png");
|
||||
Glib::RefPtr<Gdk::Pixbuf> wbpick = safe_create_from_file("wbpicker16.png");
|
||||
Glib::RefPtr<Gdk::Pixbuf> empty = safe_create_from_file("empty.png");
|
||||
|
||||
cHand = hand ? new Gdk::Cursor (cAdd->get_display(), hand, 10, 10) : new Gdk::Cursor (Gdk::HAND2);
|
||||
cClosedHand = close_hand ? new Gdk::Cursor (cAdd->get_display(), close_hand, 10, 10) : new Gdk::Cursor (Gdk::HAND2);
|
||||
|
Reference in New Issue
Block a user