changeset 3233:511228884d98

Fixed #302: Set default value to zero for tags
author unexist
date Wed, 19 Sep 2012 12:59:09 +0200
parents 18ca368e642a
children e6cd8d1d5512
files src/subtlext/client.c src/subtlext/subtlext.c src/subtlext/view.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtlext/client.c	Tue Sep 18 12:37:06 2012 +0200
+++ b/src/subtlext/client.c	Wed Sep 19 12:59:09 2012 +0200
@@ -533,7 +533,7 @@
   rb_iv_set(self, "@gravity",  Qnil);
   rb_iv_set(self, "@screen",   Qnil);
   rb_iv_set(self, "@flags",    Qnil);
-  rb_iv_set(self, "@tags",     Qnil);
+  rb_iv_set(self, "@tags",     FIX2INT(0));
 
   subextSubtlextConnect(NULL); ///< Implicit open connection
 
--- a/src/subtlext/subtlext.c	Tue Sep 18 12:37:06 2012 +0200
+++ b/src/subtlext/subtlext.c	Wed Sep 19 12:59:09 2012 +0200
@@ -289,7 +289,7 @@
       int tags = FIX2INT(rb_iv_get(self, "@tags"));
 
       /* Update masks */
-      if(1 == action)       data.l[1] = tags |  data.l[1];
+     if(1 == action)       data.l[1] = tags |  data.l[1];
      else if(-1 == action) data.l[1] = tags & ~data.l[1];
     }
 
--- a/src/subtlext/view.c	Tue Sep 18 12:37:06 2012 +0200
+++ b/src/subtlext/view.c	Wed Sep 19 12:59:09 2012 +0200
@@ -344,7 +344,7 @@
   /* Init object */
   rb_iv_set(self, "@id",   Qnil);
   rb_iv_set(self, "@name", name);
-  rb_iv_set(self, "@tags", Qnil);
+  rb_iv_set(self, "@tags", FIX2INT(0));
 
   subextSubtlextConnect(NULL); ///< Implicit open connection