Update xfce4-xkb-plugin to 0.5.3.3

George Liaskos geo.liaskos at gmail.com
Wed Mar 9 23:07:45 UTC 2011


The latest version has a GUI option to set the shortcut for switching
between keyboard layouts. Handy for newcomers.
It has an added dependency to librsvg2 because the country flags are
in svg format now, the following patch takes care of the compilation
errors.

--- xkb-config.c.orig	2011-03-06 04:02:24.000000000 +0200
+++ xkb-config.c	2011-03-06 04:09:26.000000000 +0200
@@ -150,7 +150,7 @@
     config->application_map = g_hash_table_new (g_direct_hash, NULL);

     registry = xkl_config_registry_get_instance (config->engine);
-    xkl_config_registry_load (registry);
+    xkl_config_registry_load (registry, FALSE);

     config_item = xkl_config_item_new ();

@@ -214,7 +214,8 @@

     gdk_window_remove_filter (NULL, (GdkFilterFunc) handle_xevent, NULL);

-    xkl_engine_stop_listen (config->engine);
+    xkl_engine_stop_listen (config->engine,
+      XKLL_MANAGE_LAYOUTS | XKLL_MANAGE_WINDOW_STATES);
 }

 gint
@@ -547,7 +548,7 @@
     if (!config) return NULL;

     registry = xkl_config_registry_get_instance (config->engine);
-    xkl_config_registry_load (registry);
+    xkl_config_registry_load (registry, FALSE);

     return registry;
 }

Regards


More information about the freebsd-ports mailing list