Logo Search packages:      
Sourcecode: inkscape version File versions

static gint sp_canvas_focus_in ( GtkWidget *  widget,
GdkEventFocus *  event 
) [static]

Focus in handler for the canvas.

Definition at line 1996 of file sp-canvas.cpp.

References emit_event(), and SPCanvas::focused_item.

Referenced by sp_canvas_class_init().

{
    GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS);

    SPCanvas *canvas = SP_CANVAS (widget);

    if (canvas->focused_item) {
        return emit_event (canvas, (GdkEvent *) event);
    } else {
        return FALSE;
    }
}


Generated by  Doxygen 1.6.0   Back to index