{"KP_Subtract", zoom_out_cb},
{"F", toggle_fit_cb},
};
+
+int gvevent_key_binding_size = ARRAY_SIZE(gvevent_key_binding);
#endif
struct gvrender_engine_s {
- void (*initialize) (GVC_t * gvc);
+ void (*initialize) (GVC_t * gvc, gvevent_key_binding_t *keys, int numkeys);
void (*finalize) (GVC_t * gvc);
void (*begin_job) (gvrender_job_t * job);
void (*end_job) (gvrender_job_t * job);
return features;
}
+extern gvevent_key_binding_t *gvevent_key_binding;
+extern int gvevent_key_binding_size;
+
void gvrender_initialize(GVC_t * gvc)
{
gvrender_job_t *job = gvc->job;
if (gvre) {
if (gvre->initialize)
- gvre->initialize(gvc);
+ gvre->initialize(gvc, gvevent_key_binding, gvevent_key_binding_size);
}
#if 0
/* codegens don't have this entry point */