Beispiel #1
0
static gint
gtk_m_key_snoop_func(GtkWidget *grab_widget, GdkEventKey *event, gpointer func)
{
    VALUE ret = rb_funcall((VALUE)func, id_call, 2,
                           GOBJ2RVAL(grab_widget),
                           GEV2RVAL((GdkEvent*)event));
    return RVAL2CBOOL(ret);
}
Beispiel #2
0
static VALUE
rg_s_current_event(G_GNUC_UNUSED VALUE self)
{
    return GEV2RVAL(gtk_get_current_event());
}
Beispiel #3
0
static VALUE
rg_peek_event(VALUE self)
{
    return GEV2RVAL(gdk_display_peek_event(_SELF(self)));
}