Removed unnecessary function
parent
63296c343b
commit
26ac269df4
|
|
@ -65,7 +65,6 @@ static Font getFont(void);
|
||||||
static BarComponent bar_component_create(PangoContext* context, PangoFontDescription* description);
|
static BarComponent bar_component_create(PangoContext* context, PangoFontDescription* description);
|
||||||
static void bar_component_render(Bar* bar, BarComponent* component, cairo_t* painter, uint width, int* x);
|
static void bar_component_render(Bar* bar, BarComponent* component, cairo_t* painter, uint width, int* x);
|
||||||
static int bar_component_width(BarComponent* component);
|
static int bar_component_width(BarComponent* component);
|
||||||
static int bar_component_height(BarComponent* component);
|
|
||||||
|
|
||||||
static Font bar_font = {NULL, 0};
|
static Font bar_font = {NULL, 0};
|
||||||
|
|
||||||
|
|
@ -139,12 +138,6 @@ int bar_component_width(BarComponent* component) {
|
||||||
return PANGO_PIXELS(w);
|
return PANGO_PIXELS(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
int bar_component_height(BarComponent* component) {
|
|
||||||
int h;
|
|
||||||
pango_layout_get_size(component->layout, NULL, &h);
|
|
||||||
return PANGO_PIXELS(h);
|
|
||||||
}
|
|
||||||
|
|
||||||
void bar_set_colorscheme(Bar* bar, const int** scheme) {
|
void bar_set_colorscheme(Bar* bar, const int** scheme) {
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
bar->foreground[i] = scheme[0][i];
|
bar->foreground[i] = scheme[0][i];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue