[Gtk-sharp-list] Setting a GConf key to an empty list

Pedro Castro mail at pedrocastro.org
Tue Mar 20 23:16:40 EDT 2007


I can't seem to find a way to store an empty list (of strings) in a 
GConf key. Is this possible? The test case that follows outputs the 
error messages:

(TestGConf.exe:7126): GConf-CRITICAL **: gconf_value_set_list_nocopy: 
assertion `real->d.list_data.type != GCONF_VALUE_INVALID' failed

(TestGConf.exe:7126): GConf-CRITICAL **: gconf_engine_set: assertion 
`(value->type != GCONF_VALUE_LIST) || (gconf_value_get_list_type(value) 
!= GCONF_VALUE_INVALID)' failed


################ Start of Code ###########
using GConf;

public class TestCase {

    public static void Main () {
        string[] list = new string[0];
        Client client = new Client();
        client.Set("/testing_key", list);
}

}
################ End of Code ############

-- 
Pedro Castro




More information about the Gtk-sharp-list mailing list