From: Alexey Tourbin <at@altlinux.ru>
To: devel@altlinux.ru
Subject: [devel] Re: Requires для perl
Date: Wed, 14 Sep 2005 14:03:44 +0400
Message-ID: <20050914100344.GG3290@solemn.turbinal.org> (raw)
In-Reply-To: <20050914081444.GF3290@solemn.turbinal.org>
[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]
On Wed, Sep 14, 2005 at 12:14:44PM +0400, Alexey Tourbin wrote:
> Лучше вставить Gtk2->init в место фактической инициализации гуя у
> программы, или же, если нет желания разбираться, где находится это
> скорбное место, написать use Gtk2; INIT { Gtk2->init; }.
С другой стороны, в `perldoc Gtk2' сказано:
-init
Equivalent to Gtk2->init, called to initialize GLIB and
GTK+. Just about every Gtk2-Perl script should do "use Gtk2
-init"; This initialization should take place before using
any other Gtk2 functions in your GUI applications. It will
initialize everything needed to operate the toolkit and
parses some standard command line options. @ARGV is
adjusted accordingly so your own code will never see those
standard arguments.
То есть эта бня ещё и манглит аргументы командной строки. Needless
to say что стоило бы как-нибудь отделить инициализацию гуя от кромсания
аргументов командной строки, но этого нет.
use Gtk2;
INIT { Gtk2->init; }
остаётся наиболее приемлемым вариантом.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-09-14 10:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-14 7:49 [devel] " Vitaly Lipatov
2005-09-14 8:14 ` [devel] " Alexey Tourbin
2005-09-14 10:03 ` Alexey Tourbin [this message]
2005-09-14 23:25 ` Vitaly Lipatov
2005-09-15 4:16 ` Alexey Tourbin
2005-09-15 6:24 ` Vitaly Ostanin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050914100344.GG3290@solemn.turbinal.org \
--to=at@altlinux.ru \
--cc=devel@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git