[maemo-commits] [maemo-commits] r13741 - in projects/haf/trunk/hildon-input-method: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Sep 11 14:15:23 EEST 2007
Author: tjunnone
Date: 2007-09-11 14:15:21 +0300 (Tue, 11 Sep 2007)
New Revision: 13741

Modified:
   projects/haf/trunk/hildon-input-method/ChangeLog
   projects/haf/trunk/hildon-input-method/src/hildon-im-ui.c
Log:
* src/hildon-im-ui.c: Fixed stylus plugin being unconditionally loaded whenever
  the enable stylus plugins gconf value changed.



Modified: projects/haf/trunk/hildon-input-method/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-input-method/ChangeLog	2007-09-11 11:11:23 UTC (rev 13740)
+++ projects/haf/trunk/hildon-input-method/ChangeLog	2007-09-11 11:15:21 UTC (rev 13741)
@@ -1,3 +1,8 @@
+2007-09-11  Tomas Junnonen  <tomas.junnonen at nokia.com>
+
+	* src/hildon-im-ui.c: Fixed stylus plugin being unconditionally loaded whenever
+	  the enable stylus plugins gconf value changed.
+
 2007-09-10  Mohammad Anwari  <mdamt at maemo.org>
 
 	* src/Makefile.am: Added internal.h to SOURCES in order to get into make dist.

Modified: projects/haf/trunk/hildon-input-method/src/hildon-im-ui.c
===================================================================
--- projects/haf/trunk/hildon-input-method/src/hildon-im-ui.c	2007-09-11 11:11:23 UTC (rev 13740)
+++ projects/haf/trunk/hildon-input-method/src/hildon-im-ui.c	2007-09-11 11:15:21 UTC (rev 13741)
@@ -1382,7 +1382,11 @@
     if (value->type == GCONF_VALUE_BOOL)
     {
       self->priv->enable_stylus_ui = gconf_value_get_bool(value);
-      set_plugin_to_stylus_im (self);
+      if (self->priv->keyboard_available == FALSE &&
+          self->priv->enable_stylus_ui == TRUE)
+      {
+        set_plugin_to_stylus_im(self);
+      }
       if (self->priv->enable_stylus_ui == FALSE)
         hildon_im_ui_hide(self);
     }


More information about the maemo-commits mailing list