Merging new panel in the trunk.

This commit is contained in:
Sanel Zukan
2009-10-03 07:33:08 +00:00
parent 0b3662910f
commit 1f96f833d9
146 changed files with 7482 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <edelib/Debug.h>
#include "PagerButton.h"
PagerButton::~PagerButton() {
if(ttip)
free(ttip);
}
void PagerButton::set_workspace_label(int l) {
wlabel = l;
char buf[16];
snprintf(buf, sizeof(buf), "%i", l);
copy_label(buf);
}
void PagerButton::copy_tooltip(const char *t) {
E_RETURN_IF_FAIL(t != NULL);
if(ttip)
free(ttip);
ttip = strdup(t);
tooltip(ttip);
}
void PagerButton::select_it(int i) {
if(i) {
color((Fl_Color)44);
labelcolor(FL_BLACK);
} else {
color((Fl_Color)33);
labelcolor(FL_GRAY);
}
redraw();
}