示例#1
0
static MxFocusable *
_move_focus (MxFocusable      *focusable,
             MxFocusDirection  direction,
             MxFocusable      *old_focus)
{
  MexActionButtonPrivate *priv = MEX_ACTION_BUTTON (focusable)->priv;
  MxFocusableIface *iface;

  clutter_actor_meta_set_enabled (CLUTTER_ACTOR_META (priv->shadow), FALSE);

  priv->has_focus = FALSE;


  iface = g_type_interface_peek_parent (MX_FOCUSABLE_GET_INTERFACE (focusable));
  return iface->move_focus (focusable, direction, old_focus);
}
static MxFocusable *
_move_focus (MxFocusable      *focusable,
             MxFocusDirection  direction,
             MxFocusable      *old_focus)
{
    MexActionButtonPrivate *priv = MEX_ACTION_BUTTON (focusable)->priv;
    MxFocusableIface *iface;

    g_object_unref (priv->shadow);
    priv->shadow = NULL;

    priv->has_focus = FALSE;


    iface = g_type_interface_peek_parent (MX_FOCUSABLE_GET_INTERFACE (focusable));
    return iface->move_focus (focusable, direction, old_focus);
}