void draw_backing_rect(struct gui_data *inst)
{
GdkGC *gc = gdk_gc_new(inst->area->window);
- gdk_gc_set_foreground(gc, &inst->cols[18]); /* default background */
+ gdk_gc_set_foreground(gc, &inst->cols[258]); /* default background */
gdk_draw_rectangle(inst->pixmap, gc, 1, 0, 0,
inst->cfg.width * inst->font_width + 2*inst->cfg.window_border,
inst->cfg.height * inst->font_height + 2*inst->cfg.window_border);
void set_window_background(struct gui_data *inst)
{
if (inst->area && inst->area->window)
- gdk_window_set_background(inst->area->window, &inst->cols[18]);
+ gdk_window_set_background(inst->area->window, &inst->cols[258]);
if (inst->window && inst->window->window)
- gdk_window_set_background(inst->window->window, &inst->cols[18]);
+ gdk_window_set_background(inst->window->window, &inst->cols[258]);
}
void palette_set(void *frontend, int n, int r, int g, int b)
length = inst->font_height;
}
- gdk_gc_set_foreground(gc, &inst->cols[NCFGCOLOURS-1]);
+ gdk_gc_set_foreground(gc, &inst->cols[261]);
if (passive) {
for (i = 0; i < length; i++) {
if (i % 2 == 0) {
return err;
}
-static void block_signal(int sig, int block_it) {
- sigset_t ss;
-
- sigemptyset(&ss);
- sigaddset(&ss, sig);
- if(sigprocmask(block_it ? SIG_BLOCK : SIG_UNBLOCK, &ss, 0) < 0) {
- perror("sigprocmask");
- exit(1);
- }
-}
-
/*
* This function retrieves the character set encoding of a font. It
* returns the character set without the X11 hack (in case the user