Adding comments

This commit is contained in:
Hombre
2016-03-09 18:50:56 +01:00
parent 30b5949fd5
commit 7dfacf6ff4
2 changed files with 8 additions and 7 deletions

View File

@@ -940,8 +940,9 @@ void OPIcon::drawInnerGeometry(Cairo::RefPtr<Cairo::Context> &cr,
ObjectMOBuffer *objectBuffer, EditCoordSystem &coordSystem) ObjectMOBuffer *objectBuffer, EditCoordSystem &coordSystem)
{ {
if (flags & F_VISIBLE) { if (flags & F_VISIBLE) {
// Here we will handle fallback solutions // Here we will handle fall-back solutions
State tmpState = state;
State tmpState = state; // can be updated through the successive test
if (tmpState == INSENSITIVE) { if (tmpState == INSENSITIVE) {
if (!insensitiveImg) { if (!insensitiveImg) {

View File

@@ -421,9 +421,9 @@ public:
OPIcon (const Cairo::RefPtr<Cairo::ImageSurface> &normal, OPIcon (const Cairo::RefPtr<Cairo::ImageSurface> &normal,
const Cairo::RefPtr<Cairo::ImageSurface> &active, const Cairo::RefPtr<Cairo::ImageSurface> &active,
const Cairo::RefPtr<Cairo::ImageSurface> &prelight = Cairo::RefPtr<Cairo::ImageSurface> (), const Cairo::RefPtr<Cairo::ImageSurface> &prelight = {},
const Cairo::RefPtr<Cairo::ImageSurface> &dragged = Cairo::RefPtr<Cairo::ImageSurface> (), const Cairo::RefPtr<Cairo::ImageSurface> &dragged = {},
const Cairo::RefPtr<Cairo::ImageSurface> &insensitive = Cairo::RefPtr<Cairo::ImageSurface> (), const Cairo::RefPtr<Cairo::ImageSurface> &insensitive = {},
DrivenPoint drivenPoint = DP_CENTERCENTER); DrivenPoint drivenPoint = DP_CENTERCENTER);
OPIcon (Glib::ustring normalImage, Glib::ustring activeImage, Glib::ustring prelightImage = "", Glib::ustring draggedImage = "", Glib::ustring insensitiveImage = "", DrivenPoint drivenPoint = DP_CENTERCENTER); OPIcon (Glib::ustring normalImage, Glib::ustring activeImage, Glib::ustring prelightImage = "", Glib::ustring draggedImage = "", Glib::ustring insensitiveImage = "", DrivenPoint drivenPoint = DP_CENTERCENTER);
const Cairo::RefPtr<Cairo::ImageSurface> getNormalImg(); const Cairo::RefPtr<Cairo::ImageSurface> getNormalImg();