Re-organize API.
EekGtkKeyboard is now a subclass of GtkWidget not EekKeyboard. Widget creation is done as follows: layout = eek_xkl_layout_new (...); keyboard = eek_keyboard_new (layout, 640, 480); widget = eek_gtk_keyboard_new (keyboard); Broken Clutter support is temporarily disabled.
This commit is contained in:
		@ -438,26 +438,3 @@ eek_section_find_key_by_keycode (EekSection *section,
 | 
			
		||||
    return EEK_SECTION_GET_CLASS(section)->find_key_by_keycode (section,
 | 
			
		||||
                                                                keycode);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
EekKey *
 | 
			
		||||
eek_section_find_key_by_position (EekSection *section,
 | 
			
		||||
                                  gdouble     x,
 | 
			
		||||
                                  gdouble     y)
 | 
			
		||||
{
 | 
			
		||||
    gint angle;
 | 
			
		||||
    EekBounds bounds;
 | 
			
		||||
    EekPoint point;
 | 
			
		||||
    EekElement *key;
 | 
			
		||||
 | 
			
		||||
    eek_element_get_bounds (EEK_ELEMENT(section), &bounds);
 | 
			
		||||
    point.x = x - bounds.x;
 | 
			
		||||
    point.y = y - bounds.y;
 | 
			
		||||
    angle = eek_section_get_angle (section);
 | 
			
		||||
    eek_point_rotate (&point, -angle);
 | 
			
		||||
    key = eek_container_find_by_position (EEK_CONTAINER(section),
 | 
			
		||||
                                          point.x + bounds.x,
 | 
			
		||||
                                          point.y + bounds.y);
 | 
			
		||||
    if (!key)
 | 
			
		||||
        return NULL;
 | 
			
		||||
    return EEK_KEY(key);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user