Example #1
0
static VALUE
rg_im_context_filter_keypress(VALUE self, VALUE event)
{
    gboolean result;

    result = gtk_entry_im_context_filter_keypress(_SELF(self),
                                                  RVAL2GDKEVENTKEY(event));

    return CBOOL2RVAL(result);
}
int wxTextEntry::GTKIMFilterKeypress(GdkEventKey* event) const
{
#if GTK_CHECK_VERSION(2, 22, 0)
    if ( gtk_check_version(2, 12, 0) == 0 )
        return gtk_entry_im_context_filter_keypress(GetEntry(), event);
#else // GTK+ < 2.22
    wxUnusedVar(event);
#endif // GTK+ 2.22+

    return FALSE;
}
Example #3
0
int wxTextEntry::GTKIMFilterKeypress(GdkEventKey* event) const
{
    int result;
#if GTK_CHECK_VERSION(2, 22, 0)
#ifndef __WXGTK3__
    result = false;
    if (gtk_check_version(2,22,0) == NULL)
#endif
    {
        result = gtk_entry_im_context_filter_keypress(GetEntry(), event);
    }
#else // GTK+ < 2.22
    wxUnusedVar(event);
    result = false;
#endif // GTK+ 2.22+

    return result;
}