Esempio n. 1
0
static gboolean
mx_combo_box_key_press_event (ClutterActor    *actor,
                              ClutterKeyEvent *event)
{
  switch (event->keyval)
    {
    case CLUTTER_KEY_Return:
      return mx_combo_box_open_menu (MX_COMBO_BOX (actor));

    default:
      return FALSE;
    }
}
Esempio n. 2
0
static gboolean
mx_combo_box_touch_event (ClutterActor      *actor,
                          ClutterTouchEvent *event)
{
  switch (event->type)
    {
    case CLUTTER_TOUCH_BEGIN:
      return mx_combo_box_open_menu (MX_COMBO_BOX (actor));

    default:
      return FALSE;
    }

  return FALSE;
}
Esempio n. 3
0
static gboolean
mx_combo_box_button_press_event (ClutterActor       *actor,
                                 ClutterButtonEvent *event)
{
  return mx_combo_box_open_menu (MX_COMBO_BOX (actor));
}