NewBranch.bjs
[gitlive] / NewBranch.vala
index a2e6011..61de69f 100644 (file)
@@ -118,6 +118,7 @@ public class NewBranch : Object
 
             // set gobject values
             this.el.margin = 2;
+            this.el.column_spacing = 2;
             var child_0 = new Xcls_Label4( _this );
             child_0.ref();
             this.el.attach_defaults (  child_0.el , 0,1,0,1 );
@@ -187,6 +188,19 @@ public class NewBranch : Object
             // init method
 
             this.el.add_attribute(_this.dbcellrenderer.el , "markup", 1 );
+
+            //listeners
+            this.el.changed.connect( () => {
+            
+               Value val1;
+               Value val2;
+             
+               this.el.get_active_iter (out iter);
+               _this.dbmodel.get_value (iter, 0, out val1);
+               _this.dbmodellist_store.get_value (iter, 1, out val2);
+            
+               print ("Selection: %s, %d\n", (string) val1, (int) val2);
+            });
         }
 
         // user defined functions