@ -210,17 +210,18 @@ Extends: Gtk.Box,
let config = this . configWidgets ; this . status ( "Setting the widget" ) ;
let config = this . configWidgets ; this . status ( "Setting the widget" ) ;
for ( let i in config )
for ( let i in config )
if ( typeof config [ i ] [ 0 ] . active _id != "undefined" && config [ i ] [ 0 ] . active _id != this [ config [ i ] [ 1 ] ] )
if ( typeof config [ i ] [ 0 ] . active _id != "undefined" && config [ i ] [ 0 ] . active _id != this [ config [ i ] [ 1 ] ] )
{
{ this . status ( "Change " + config [ i ] [ 1 ] + " from " + config [ i ] [ 0 ] . active _id + " to " + this [ config [ i ] [ 1 ] ] + " (active_id)" ) ;
config [ i ] [ 0 ] . active _id = String ( this [ config [ i ] [ 1 ] ] ) ; this . status ( config [ i ] [ 1 ] + " changed from " + config [ i ] [ 0 ] . active _id + " to " + this [ config [ i ] [ 1 ] ] + " (active_id)" ) ;
config [ i ] [ 0 ] . active _id = String ( this [ config [ i ] [ 1 ] ] ) ; this . status ( config [ i ] [ 1 ] + " changed to " + this [ config [ i ] [ 1 ] ] + " (active_id)" ) ;
}
}
else if ( typeof config [ i ] [ 0 ] . active _id == "undefined" && config [ i ] [ 0 ] . active != this [ config [ i ] [ 1 ] ] )
else if ( typeof config [ i ] [ 0 ] . active _id == "undefined" && config [ i ] [ 0 ] . active != this [ config [ i ] [ 1 ] ] )
{
{ this . status ( "Change " + config [ i ] [ 1 ] + " from " + config [ i ] [ 0 ] . active + " to " + this [ config [ i ] [ 1 ] ] ) ;
config [ i ] [ 0 ] . active = this [ config [ i ] [ 1 ] ] ; this . status ( config [ i ] [ 1 ] + " changed from " + config [ i ] [ 0 ] . active + " to " + this [ config [ i ] [ 1 ] ] ) ;
config [ i ] [ 0 ] . active = this [ config [ i ] [ 1 ] ] ; this . status ( config [ i ] [ 1 ] + " changed to " + this [ config [ i ] [ 1 ] ] ) ;
}
} this . status ( "UI refreshed" ) ;
} ,
} ,
initConfigWidget : function ( )
initConfigWidget : function ( )
{
{
this . configWidgets . splice ( 0 , this . configWidgets . length ) ;
this . inc ( 1 ) ;
this . inc ( 1 ) ;
let a = this . Window . get _object ( "right-widget-table" ) ;
let a = this . Window . get _object ( "right-widget-table" ) ;
a . visible = 1 ;
a . visible = 1 ;
@ -286,7 +287,7 @@ Extends: Gtk.Box,
cf . active _id = String ( this [ b ] ) ;
cf . active _id = String ( this [ b ] ) ;
cf . connect ( "changed" , function ( ) { try { that [ b ] = Number ( arguments [ 0 ] . get _active _id ( ) ) ; } catch ( e ) { that . status ( e ) ; } } ) ;
cf . connect ( "changed" , function ( ) { try { that [ b ] = Number ( arguments [ 0 ] . get _active _id ( ) ) ; } catch ( e ) { that . status ( e ) ; } } ) ;
this . right _widget . attach ( cf , this . x [ 0 ] , this . x [ 1 ] , this . y [ 0 ] , this . y [ 1 ] , 0 , 0 , 0 , 0 ) ;
this . right _widget . attach ( cf , this . x [ 0 ] , this . x [ 1 ] , this . y [ 0 ] , this . y [ 1 ] , 0 , 0 , 0 , 0 ) ;
this . inc ( ) ;
this . inc ( ) ; this . status ( "Added comboBox(" + ( this . configWidgets . length - 1 ) + ") " + b + " active_id : " + this [ b ] ) ;
return 0 ;
return 0 ;
} ,
} ,