mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +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
|
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()));
|
GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET(ARDOUR_UI::instance()->main_window().gobj()));
|
||||||
GdkKeymap *keymap = gdk_keymap_get_for_display (display);
|
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.window = main_window.get_window()->gobj();
|
||||||
ev.send_event = FALSE;
|
ev.send_event = FALSE;
|
||||||
ev.time = 0;
|
ev.time = 0;
|
||||||
ev.state = state;
|
ev.state = 0;
|
||||||
ev.keyval = keyval;
|
ev.keyval = keyval;
|
||||||
ev.length = 0;
|
ev.length = 0;
|
||||||
ev.string = const_cast<gchar*> ("");
|
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 relay_key_press (GdkEventKey* ev, Gtk::Window* win);
|
||||||
bool key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev);
|
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);
|
Glib::RefPtr<Gdk::Pixbuf> get_xpm (std::string);
|
||||||
std::vector<std::string> get_icon_sets ();
|
std::vector<std::string> get_icon_sets ();
|
||||||
|
|
|
||||||
|
|
@ -266,7 +266,7 @@ VideoMonitor::is_started ()
|
||||||
void
|
void
|
||||||
VideoMonitor::forward_keyevent (unsigned int keyval)
|
VideoMonitor::forward_keyevent (unsigned int keyval)
|
||||||
{
|
{
|
||||||
emulate_key_event (keyval, 0);
|
emulate_key_event (keyval);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue