CVS commit by domi: Make it compile with pbbuttons >= 0.6.1-2
CCMAIL:[EMAIL PROTECTED] M +7 -1 pb_monitor.cpp 1.4.2.3 --- kdeutils/kmilo/powerbook2/pb_monitor.cpp #1.4.2.2:1.4.2.3 @@ -37,4 +37,10 @@ extern "C" { #undef template #include <pbb.h> + +// TAG_BRIGHTNESS was renamed to TAG_LCDBRIGHTNESS in pbbuttons +// 0.6.1-2 +#ifndef TAG_LCDBRIGHTNESS +#define TAG_LCDBRIGHTNESS TAG_BRIGHTNESS +#endif } @@ -80,5 +86,5 @@ Monitor::DisplayType PowerBookMonitor::p m_progress = (int)tag->data; break; - case TAG_BRIGHTNESS: + case TAG_LCDBRIGHTNESS: rc = Monitor::Brightness; m_progress = ((int)tag->data)*100/15;