From: David Espada Date: 2004-03-04T17:20:58+09:00 Subject: Re: [Ruby-gnome2][Bug] segmentation fault with ComboBox and spanish characters El mi�rcoles 03 de marzo, Masao Mutoh escribi�: >> > All strings you pass to GTK+ functions must be in UTF-8. >> >> Problem seems only to raise when I try using autocomplete with >> Alt+Tab > > Autocomplete ? Is it Gtk::Combo? Yes :) > Hmm. I don't know Gtk::Combo has autocomplete feature. > Is it about other Widget? Try yourself with a number of assigned values (set_popdown_strings) and Alt+Tab ;) > Could you send a sample(small one, please;->)? Well. In this example, you can select perfectly a value in combo with mouse, but if you type until a special spanish character and next use Alt+Tab combination in order to auto-complete word, widget run unstable and it is difficult to select a value until you type backspace repeatedly. Code: -------------------------------------------------------------- #!/usr/bin/ruby require 'glib2' require 'gtk2' Gtk::init ventana = Gtk::Window.new ventana.set_title("Problemas con car��cteres latinos") ventana.signal_connect('delete_event') {exit} vbox = Gtk::VBox::new(true, 10) boton = Gtk::Button.new('_cerrar', true) boton.signal_connect('clicked') do Gtk::main_quit end entra = Gtk::Entry.new() entra.set_text("This widget works perfectly: ����������������") combo = Gtk::Combo.new() combo.set_popdown_strings(['��rbol', 'pel��cula', 'edred��n']) combo.set_use_arrows(false) combo.set_value_in_list(true, true) vbox.pack_start(entra, true, true, 0) vbox.pack_start(combo, true, true, 0) vbox.pack_start(boton, true, true, 0) ventana.add(vbox) ventana.show_all Gtk.main -------------------------------------------------------- Special characters are in UTF-8. If you have any problem to probe, I'll send you file. Thanks. David