mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Revert "extend API of ARDOUR_UI_UTILS::emulate_key_event() to allow it to pass modifiers too"
No need to extend/change this API, since relay_key_press() can already take a window argument.
This reverts commit 2e0fa8943a.
This commit is contained in:
parent
66264eb68f
commit
4484b60b13
3 changed files with 4 additions and 4 deletions
|
|
@ -368,7 +368,7 @@ ARDOUR_UI_UTILS::relay_key_press (GdkEventKey* ev, Gtk::Window* win)
|
|||
}
|
||||
|
||||
bool
|
||||
ARDOUR_UI_UTILS::emulate_key_event (unsigned int keyval, int state)
|
||||
ARDOUR_UI_UTILS::emulate_key_event (unsigned int keyval)
|
||||
{
|
||||
GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET(ARDOUR_UI::instance()->main_window().gobj()));
|
||||
GdkKeymap *keymap = gdk_keymap_get_for_display (display);
|
||||
|
|
@ -385,7 +385,7 @@ ARDOUR_UI_UTILS::emulate_key_event (unsigned int keyval, int state)
|
|||
ev.window = main_window.get_window()->gobj();
|
||||
ev.send_event = FALSE;
|
||||
ev.time = 0;
|
||||
ev.state = state;
|
||||
ev.state = 0;
|
||||
ev.keyval = keyval;
|
||||
ev.length = 0;
|
||||
ev.string = const_cast<gchar*> ("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue