After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724277 - keyboard: Move code to get the XkbRF_VarDefsRec here
keyboard: Move code to get the XkbRF_VarDefsRec here
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks: 719942
 
 
Reported: 2014-02-13 09:52 UTC by Rui Matos
Modified: 2014-02-13 14:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
keyboard: Move code to get the XkbRF_VarDefsRec here (4.33 KB, patch)
2014-02-13 09:52 UTC, Rui Matos
needs-work Details | Review
keyboard: Move code to get the XkbRF_VarDefsRec here (8.09 KB, patch)
2014-02-13 13:39 UTC, Rui Matos
committed Details | Review

Description Rui Matos 2014-02-13 09:52:36 UTC
We need this in g-s-d before I can land
https://bugzilla.gnome.org/show_bug.cgi?id=719942 on gnome-desktop to
keep things working.
Comment 1 Rui Matos 2014-02-13 09:52:38 UTC
Created attachment 268993 [details] [review]
keyboard: Move code to get the XkbRF_VarDefsRec here

GnomeXkbInfo needs to drop its X dependency to be used on a wayland
compositor gnome-shell and in that case the xkb data path is an
implementation detail.

This g-s-d plugin will still be used on X only setups so we'll move
the code here.
Comment 2 Bastien Nocera 2014-02-13 12:18:35 UTC
Review of attachment 268993 [details] [review]:

::: configure.ac
@@ +197,3 @@
 PKG_CHECK_MODULES(KEYBOARD, xkbfile $IBUS_MODULE gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)
 
+XKB_BASE=$($PKG_CONFIG --variable xkb_base xkeyboard-config)

You'll need to check at least once for the xkeyboard-config pkg-config file.

::: plugins/keyboard/gsd-keyboard-manager.c
@@ +49,3 @@
+#endif
+#ifndef XKB_MODEL
+#define XKB_MODEL "pc105+inet"

Could you move those to a separate header file?

@@ +927,2 @@
 static void
+get_var_defs (gchar            **rules,

And those to a separate .c file?
Comment 3 Rui Matos 2014-02-13 13:39:54 UTC
Created attachment 269009 [details] [review]
keyboard: Move code to get the XkbRF_VarDefsRec here

GnomeXkbInfo needs to drop its X dependency to be used on a wayland
compositor gnome-shell and in that case the xkb data path is an
implementation detail.

This g-s-d plugin will still be used on X only setups so we'll move
the code here.
--

Ok, there's more stuff that could be moved into this new utils file
but for now let's just start with these methods.
Comment 4 Bastien Nocera 2014-02-13 14:24:44 UTC
Review of attachment 269009 [details] [review]:

Looks good
Comment 5 Rui Matos 2014-02-13 14:48:56 UTC
Attachment 269009 [details] pushed as b462e65 - keyboard: Move code to get the XkbRF_VarDefsRec here