NS_IMETHODIMP nsBidiKeyboard::IsLangRTL(bool *aIsRTL) { if (!mHaveBidiKeyboards) return NS_ERROR_FAILURE; *aIsRTL = (gdk_keymap_get_direction(NULL) == PANGO_DIRECTION_RTL); return NS_OK; }
static VALUE rg_direction(VALUE self) { return GENUM2RVAL(gdk_keymap_get_direction(_SELF(self)), PANGO_TYPE_DIRECTION); }