RE : Problems with special characters and insert-text on Gtk2::Entry
- From: Zurd <zurd3 yahoo com>
- To: gtk-perl-list gnome org
- Subject: RE : Problems with special characters and insert-text on Gtk2::Entry
- Date: Mon, 26 Feb 2007 14:11:09 -0500 (EST)
Like you say, if you remove the callback insert-text it's going to work and
I would also add that if you change signal_connect to signal_connect_after,
it's also going to work.
--- Christian Jodar <tian c-sait net> a écrit :
Hello,
I have a problem with Gtk2::Entry when I connect a callback to insert-text
signal. All the special characters I could enter (I tested with é or à in
french) are replaced with 2 characters ("é" or "à "). It looks like a UTF-8
encoding problem.
This doesn't occur when removing the callback. I am using Gtk2-Perl 1.140.
There is below a small example that shows this.
Is this a known problem that has been fixed in a newer release and/or is there
a workaround?
Thank you for any help.
Christian.
#!/bin/perl
use Gtk2;
Gtk2->init;
my $window = new Gtk2::Window('toplevel');
my $entry = new Gtk2::Entry;
# Everything is OK without the next line.
$entry->signal_connect('insert-text' => sub {return ()});
$window->add($entry);
$window->show_all;
Gtk2->main;
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Courriel vous offre la meilleure protection possible contre les messages non
nollicités
http://mail.yahoo.ca Yahoo! Courriel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]