[gnome-control-center] region: Fix un-ifdef'd usage of IBus specific variables



commit eaa8dd80ee3c9ff26e8ce33b985c6101e1701417
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Feb 8 18:14:55 2013 +0100

    region: Fix un-ifdef'd usage of IBus specific variables

 panels/region/cc-region-panel.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index df40be2..8518a83 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -144,11 +144,13 @@ cc_region_panel_finalize (GObject *object)
         g_clear_object (&priv->locale_settings);
         g_clear_object (&priv->input_settings);
         g_clear_object (&priv->xkb_info);
+#ifdef HAVE_IBUS
         g_clear_object (&priv->ibus);
         if (priv->ibus_cancellable)
                 g_cancellable_cancel (priv->ibus_cancellable);
         g_clear_object (&priv->ibus_cancellable);
         g_clear_pointer (&priv->ibus_engines, g_hash_table_destroy);
+#endif
         g_free (priv->language);
         g_free (priv->region);
         g_free (priv->system_language);
@@ -957,7 +959,12 @@ show_input_chooser (CcRegionPanel *self)
         toplevel = gtk_widget_get_toplevel (GTK_WIDGET (self));
         chooser = cc_input_chooser_new (GTK_WINDOW (toplevel),
                                         priv->xkb_info,
-                                        priv->ibus_engines);
+#ifdef HAVE_IBUS
+                                        priv->ibus_engines
+#else
+                                        NULL
+#endif
+                );
         g_signal_connect (chooser, "response",
                           G_CALLBACK (input_response), self);
 }


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