Got rid of signals in the pressed path

This commit is contained in:
Dorota Czaplejewicz
2019-06-19 17:00:30 +00:00
parent eff0449b3a
commit e7ba2a0eb0
5 changed files with 10 additions and 62 deletions

View File

@ -210,12 +210,9 @@ eek_gtk_keyboard_real_button_press_event (GtkWidget *self,
(gdouble)event->x,
(gdouble)event->y);
if (key) {
g_log("squeek", G_LOG_LEVEL_DEBUG, "emit EekKey pressed");
g_signal_emit_by_name (key, "pressed"); // TODO: set the pressed property on the key instead
eek_keyboard_press_key(priv->keyboard, key, event->time);
on_key_pressed(priv->keyboard, key, event->time, EEK_GTK_KEYBOARD(self));
}
// TODO: send time
return TRUE;
}