Example #1
0
static void
hold_action (GtkPressAndHold *pah,
             gint             x,
             gint             y,
             GtkColorSwatch  *swatch)
{
  emit_customize (swatch);
}
Example #2
0
static void
hold_action (GtkGestureLongPress *gesture,
             gdouble              x,
             gdouble              y,
             GtkColorSwatch      *swatch)
{
  emit_customize (swatch);
  gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
}