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
|
@ -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*> ("");
|
||||
|
|
|
@ -82,7 +82,7 @@ void set_color_from_rgba (Gdk::Color&, uint32_t);
|
|||
|
||||
bool relay_key_press (GdkEventKey* ev, Gtk::Window* win);
|
||||
bool key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev);
|
||||
bool emulate_key_event (unsigned int, int state);
|
||||
bool emulate_key_event (unsigned int);
|
||||
|
||||
Glib::RefPtr<Gdk::Pixbuf> get_xpm (std::string);
|
||||
std::vector<std::string> get_icon_sets ();
|
||||
|
|
|
@ -266,7 +266,7 @@ VideoMonitor::is_started ()
|
|||
void
|
||||
VideoMonitor::forward_keyevent (unsigned int keyval)
|
||||
{
|
||||
emulate_key_event (keyval, 0);
|
||||
emulate_key_event (keyval);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue