[gnome-settings-daemon] keyboard: Fix build without IBus



commit 48c24a468e5c9d30791927de38cf301f843fcc2a
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Oct 26 08:22:00 2012 +0200

    keyboard: Fix build without IBus
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686894

 plugins/keyboard/gsd-keyboard-manager.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index 8ec6666..79c2d45 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -1484,7 +1484,9 @@ maybe_create_input_sources (GsdKeyboardManager *manager)
 static gboolean
 start_keyboard_idle_cb (GsdKeyboardManager *manager)
 {
+#ifdef HAVE_IBUS
         GDBusProxy *proxy;
+#endif
         GVariant *prop;
         const gchar *name;
 
@@ -1504,6 +1506,7 @@ start_keyboard_idle_cb (GsdKeyboardManager *manager)
 
         maybe_create_input_sources (manager);
 
+#ifdef HAVE_IBUS
         proxy = gnome_settings_session_get_session_proxy ();
         prop = g_dbus_proxy_get_cached_property (proxy, "session-name");
         if (prop) {
@@ -1515,6 +1518,7 @@ start_keyboard_idle_cb (GsdKeyboardManager *manager)
                 g_warning ("failed to get SessionName, assuming gnome\n");
         }
         g_object_unref (proxy);
+#endif /* HAVE_IBUS */
 
         apply_input_sources_settings (manager->priv->input_sources_settings, NULL, 0, manager);
         /* apply current settings before we install the callback */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]