keycodes = job->keycodes;
for (i=0; i < job->numkeys; i++) {
if (kev->keycode == keycodes[i])
- return (job->keybindings[i].callback)(job) != 0;
+ return job->keybindings[i].callback(job) != 0;
}
return false;
}
case ButtonPress:
pointer.x = (double)xev.xbutton.x;
pointer.y = (double)xev.xbutton.y;
- (job->callbacks->button_press)(job, xev.xbutton.button, pointer);
+ job->callbacks->button_press(job, xev.xbutton.button, pointer);
rc++;
break;
case MotionNotify:
if (job->button) { /* only interested while a button is pressed */
pointer.x = (double)xev.xbutton.x;
pointer.y = (double)xev.xbutton.y;
- (job->callbacks->motion)(job, pointer);
+ job->callbacks->motion(job, pointer);
rc++;
}
break;
case ButtonRelease:
pointer.x = (double)xev.xbutton.x;
pointer.y = (double)xev.xbutton.y;
- (job->callbacks->button_release)(job, xev.xbutton.button, pointer);
+ job->callbacks->button_release(job, xev.xbutton.button, pointer);
if (job->selected_href && job->selected_href[0] && xev.xbutton.button == 1)
browser_show(job);
rc++;
job->width, job->height);
job->context = (void *)cairo_create(surface);
job->external_context = true;
- (job->callbacks->refresh)(job);
+ job->callbacks->refresh(job);
cairo_surface_destroy(surface);
XCopyArea(dpy, window->pix, window->win, window->gc,
0, 0, job->width, job->height, 0, 0);
if (feof(stdin))
return -1;
- (job->callbacks->read)(job, job->input_filename, job->layout_type);
+ job->callbacks->read(job, job->input_filename, job->layout_type);
rc++;
return rc;
p++;
else
p = job->input_filename;
- if (strcmp((char*)(&(event->name)), p) == 0) {
- (job->callbacks->read)(job, job->input_filename, job->layout_type);
+ if (strcmp((char*)&event->name, p) == 0) {
+ job->callbacks->read(job, job->input_filename, job->layout_type);
rc++;
}
break;