diff --git a/cmake/FindFREERDP.cmake b/cmake/FindFREERDP.cmake index f7140b845c..0e7322bb3f 100644 --- a/cmake/FindFREERDP.cmake +++ b/cmake/FindFREERDP.cmake @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, +# Foundation, Inc., 59 Temple Place, Suite 330, # Boston, MA 02111-1307, USA. find_package(PkgConfig) @@ -30,7 +30,7 @@ find_library(FREERDP_LIBRARY NAMES freerdp-core find_library(FREERDP_GDI_LIBRARY NAMES freerdp-gdi HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS}) -find_library(FREERDP_KBD_LIBRARY NAMES freerdp-kbd +find_library(FREERDP_LOCALE_LIBRARY NAMES freerdp-locale HINTS ${PC_FREERDP_LIBDIR} ${PC_FREERDP_LIBRARY_DIRS}) find_library(FREERDP_RAIL_LIBRARY NAMES freerdp-rail @@ -46,7 +46,7 @@ include(FindPackageHandleStandardArgs) find_package_handle_standard_args(FREERDP DEFAULT_MSG FREERDP_LIBRARY FREERDP_INCLUDE_DIR) -set(FREERDP_LIBRARIES ${FREERDP_LIBRARY} ${FREERDP_GDI_LIBRARY} ${FREERDP_KBD_LIBRARY} ${FREERDP_RAIL_LIBRARY} ${FREERDP_CODEC_LIBRARY} ${FREERDP_CHANNELS_LIBRARY}) +set(FREERDP_LIBRARIES ${FREERDP_LIBRARY} ${FREERDP_GDI_LIBRARY} ${FREERDP_LOCALE_LIBRARY} ${FREERDP_RAIL_LIBRARY} ${FREERDP_CODEC_LIBRARY} ${FREERDP_CHANNELS_LIBRARY}) set(FREERDP_INCLUDE_DIRS ${FREERDP_INCLUDE_DIR}) mark_as_advanced(FREERDP_INCLUDE_DIR FREERDP_LIBRARY) diff --git a/remmina-plugins/rdp/rdp_event.c b/remmina-plugins/rdp/rdp_event.c index 860b057937..de8e01f9df 100644 --- a/remmina-plugins/rdp/rdp_event.c +++ b/remmina-plugins/rdp/rdp_event.c @@ -16,7 +16,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, + * Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA. */ @@ -27,7 +27,7 @@ #include "rdp_gdi.h" #include #include -#include +#include static void remmina_rdp_event_event_push(RemminaProtocolWidget* gp, const RemminaPluginRdpEvent* e) { @@ -421,7 +421,7 @@ static gboolean remmina_rdp_event_on_key(GtkWidget* widget, GdkEventKey* event, default: if (!rfi->use_client_keymap) { - rdp_event.key_event.key_code = freerdp_kbd_get_scancode_by_keycode(event->hardware_keycode, &rdp_event.key_event.extended); + rdp_event.key_event.key_code = freerdp_keyboard_get_rdp_scancode_from_x11_keycode(event->hardware_keycode, &rdp_event.key_event.extended); remmina_plugin_service->log_printf("[RDP]keyval=%04X keycode=%i scancode=%i extended=%i\n", event->keyval, event->hardware_keycode, rdp_event.key_event.key_code, &rdp_event.key_event.extended); } @@ -429,7 +429,7 @@ static gboolean remmina_rdp_event_on_key(GtkWidget* widget, GdkEventKey* event, { display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default()); cooked_keycode = XKeysymToKeycode(display, XKeycodeToKeysym(display, event->hardware_keycode, 0)); - rdp_event.key_event.key_code = freerdp_kbd_get_scancode_by_keycode(cooked_keycode, &rdp_event.key_event.extended); + rdp_event.key_event.key_code = freerdp_keyboard_get_rdp_scancode_from_x11_keycode(cooked_keycode, &rdp_event.key_event.extended); remmina_plugin_service->log_printf("[RDP]keyval=%04X raw_keycode=%i cooked_keycode=%i scancode=%i extended=%i\n", event->keyval, event->hardware_keycode, cooked_keycode, rdp_event.key_event.key_code, &rdp_event.key_event.extended); } diff --git a/remmina-plugins/rdp/rdp_settings.c b/remmina-plugins/rdp/rdp_settings.c index b95ba44ae4..d4220c7312 100644 --- a/remmina-plugins/rdp/rdp_settings.c +++ b/remmina-plugins/rdp/rdp_settings.c @@ -1,6 +1,6 @@ /* * Remmina - The GTK+ Remote Desktop Client - * Copyright (C) 2010-2011 Vic Lee + * Copyright (C) 2010-2011 Vic Lee * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,20 +14,20 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, + * Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA. */ #include "rdp_plugin.h" #include "rdp_settings.h" -#include +#include static guint keyboard_layout = 0; static guint rdp_keyboard_layout = 0; static void remmina_rdp_settings_kbd_init(void) { - keyboard_layout = freerdp_kbd_init(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), rdp_keyboard_layout); + keyboard_layout = freerdp_keyboard_init(rdp_keyboard_layout); } void remmina_rdp_settings_init(void) @@ -141,7 +141,7 @@ static void remmina_rdp_settings_table_load_layout(RemminaPluginRdpsetTable* tab gint i; gchar* s; GtkTreeIter iter; - rdpKeyboardLayout* layouts; + RDP_KEYBOARD_LAYOUT* layouts; gtk_list_store_append(table->keyboard_layout_store, &iter); gtk_list_store_set(table->keyboard_layout_store, &iter, 0, 0, 1, _(""), -1); @@ -151,7 +151,7 @@ static void remmina_rdp_settings_table_load_layout(RemminaPluginRdpsetTable* tab gtk_label_set_text(GTK_LABEL(table->keyboard_layout_label), "-"); - layouts = freerdp_kbd_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_STANDARD | RDP_KEYBOARD_LAYOUT_TYPE_VARIANT); + layouts = freerdp_keyboard_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_STANDARD | RDP_KEYBOARD_LAYOUT_TYPE_VARIANT); for (i = 0; layouts[i].code; i++) {