Re: Mandrake patched perl-GTK2 in a bad direction?
- From: muppet <scott asofyet org>
- To: gtk-perl mailing list <gtk-perl-list gnome org>
- Cc:
- Subject: Re: Mandrake patched perl-GTK2 in a bad direction?
- Date: Sun, 3 Apr 2005 12:49:21 -0400
[sorry to break threading; my mail host appears to be having problems
and eating messages.]
Péter said:
I've got this letter from a tester of one of my program - who uses
perl-GTK2
and the needed modules from CPAN:
the line:
$splash_win{label} = new Gtk2::Label(_("Loading GPRS Easy
Connect"));
become:
$splash_win{label} = new Gtk2::Label("Loading GPRS Easy Connect");
I used at first Glade(1) for the design and after I rewrited the code
to GTK2,
maybe the GTK2 doesn't like the underline character in this case?
_() is typically an internationalization function, which looks up
strings in a language database and returns the one for the current
language setting. This is not part of gtk2-perl, and i can't find
anything in mandrake's rpm patches that add it. Perhaps you need to
use the Gettext module?
2, He wrote me this too:
I think set_uposition was removed from Gtk2-perl, but the Mandrake's
version has some patch for backward compatibility.
I think using set_uposition it will work only with Mandrake!
I'm using Glib, Gtk2 and Gnome2 from CPAN!
Is he right??? I'm using Mandrake now while making my program and
there wasn't
chance to test under other distrib. Do I have to rewrite all code
using VBOX
and HBOX????
Patch9 in the mandrake RPM adds the deprecated function
gtk_widget_set_uposition(). This was deprecated as of gtk+ 2.0.0 and
therefore is not part of gtk2-perl.
http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-
set-uposition
I don't recall why the mandrake rpms include it (Thierry?), but i
believe it was part of porting old code.
The Gtk-Perl to Gtk2-Perl porting guide (
http://gtk2-perl.sourceforge.net/doc/porting.html ) says:
Gtk::Widget::set_uposition() has been deprecated and is not bound
anymore; use Gtk2::Window::move(), Gtk2::Fixed::put(), or
Gtk2::Layout::put() instead.
You imply that you're not using HBox or VBox, so i presume you're doing
manual layout with a Gtk2::Fixed, so i think Gtk2::Fixed::put() is what
you want.
--
That's it! It's one thing for a ghost to scare my children, but it's
another to play my theremin!
- Homer Simpson
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]