From dkasak@nusconsulting.com.au Thu Sep 30 20:01:29 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 573EA3B0B47 for ; Thu, 30 Sep 2004 20:01:29 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23940-01 for ; Thu, 30 Sep 2004 20:01:28 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 9C0083B080A for ; Thu, 30 Sep 2004 20:01:26 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i910AbVa031087 for ; Fri, 1 Oct 2004 10:10:37 +1000 Message-ID: <415C9E4A.7030706@nusconsulting.com.au> Date: Fri, 01 Oct 2004 10:01:14 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040823) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gtk-Perl-List References: <415B9D82.8040707@nusconsulting.com.au> <021A463E-12DD-11D9-9F23-000A9580E5E0@asofyet.org> In-Reply-To: <021A463E-12DD-11D9-9F23-000A9580E5E0@asofyet.org> Content-Type: multipart/mixed; boundary="----------=_1096589438-12996-75" X-Canit-Stats-ID: 108956 - 1baf549d62ae X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: CellRendererSpinButton and negative values X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 00:01:29 -0000 This is a multi-part message in MIME format... ------------=_1096589438-12996-75 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline muppet wrote: > the array reference at line 57 is > > ['value', 'Value', 'How much is the fish', 0.0], > > and the Glib::ParamSpec::double call places those values respectively > in the "name", "nickname", "blurb", and "default_value" parameters. > three other parameters are hard-coded there --- "minimum" ('0.0' at > line 53), "maximum" (DBL_MAX at line 54), and "flags" (readable & > writable, at line 56). > > thus, this defines those four parameters to be doubles with legal > values being the set [0.0, DBL_MAX]. > > if you want to change the legal range, you'll want to pull 'step' out > of the map statement (negative values are not sensible for the 'step' > parameter, which is passed to the SpinButton's step parameter to > determine the increment used by the arrow buttons), and change the min > & max to taste. Thanks :) It's working very well now. Dan -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1096589438-12996-75 Content-Type: text/html; name="CANIT-VOTING-LINKS-108956-1baf549d62ae.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-108956-1baf549d62ae.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 108956

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1096589438-12996-75-- From scott@asofyet.org Thu Sep 30 22:57:51 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 452F63B14B6 for ; Thu, 30 Sep 2004 22:57:51 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29146-07 for ; Thu, 30 Sep 2004 22:57:49 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id A68403B13A4 for ; Thu, 30 Sep 2004 22:57:49 -0400 (EDT) Received: from [192.168.0.100] (adsl-1116.mis.net [12.162.183.102]) by smeagol.dreamhost.com (Postfix) with ESMTP id 936202383B for ; Thu, 30 Sep 2004 19:57:48 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: gtk-perl mailing list From: muppet Date: Thu, 30 Sep 2004 22:57:47 -0400 X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Gtk2::Deprecated 0.06 (alpha) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 02:57:51 -0000 Gtk2::Deprecated provides Perl bindings for the widgets that were deprecated in 2.0 and therefore not available in the Gtk2 module. This module exists mainly to ease porting Gtk-Perl apps which rely heavily on the deprecated functionality of GTK+ 1.x. http://asofyet.org/muppet/software/gtk2-perl/Gtk2-Deprecated-0.06.tar.gz Overview of changes in Gtk2-Deprecated 0.06 =========================================== * CTree fixes; allow undef in a couple of places, correct some bad aliases, and work around the misdefinition of GtkCTreeNode so that signals and callbacks actually give you a proper blessed object. Thanks to Martin Junius for pointing out that it was broken. Now has a test. * Add support for GdkFont. * Add support for GtkPreview. -- The door is locked. I tried to open it, but the lock is harder to pick than a broken nose. -- Sensei, on 'I, Ninja' From listbox@netego.de Fri Oct 1 12:35:59 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 490CB3B0D46 for ; Fri, 1 Oct 2004 12:35:59 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31716-07 for ; Fri, 1 Oct 2004 12:35:58 -0400 (EDT) Received: from zini.netego.de (p50817AE5.dip.t-dialin.net [80.129.122.229]) by menubar.gnome.org (Postfix) with ESMTP id D1B603B0D1C for ; Fri, 1 Oct 2004 12:35:56 -0400 (EDT) Received: from zini.netego.de (localhost.localdomain [127.0.0.1]) by zini.netego.de (8.13.1/8.13.1) with SMTP id i91GZnIm001962 for ; Fri, 1 Oct 2004 18:35:50 +0200 Message-Id: <200410011635.i91GZnIm001962@zini.netego.de> Content-Type: multipart/signed; boundary="=----==--===-====---=-=-=--=-=-----=----="; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Disposition: inline MIME-Version: 1.0 From: "Florian Schaefer" To: "Gtk-Perl" X-Mailer: Pronto v3.0.0-fs On linux/mysql Date: Fri, 1 Oct 2004 18:35:44 +0200 X-Virus-Scanned: by amavisd-new at gnome.org Subject: style of Gtk2::ToggleToolButton X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Florian Schaefer List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 16:35:59 -0000 --=----==--===-====---=-=-=--=-=-----=----= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I've added a ToggleToolButton to a toolbar with the following lines of code (&new_pixmap returns a Gtk2::Image): $tb_item2 =3D Gtk2::ToggleToolButton->new; $tb_item2->set_label("Spelling"); $spell_widget_icon =3D &new_pixmap("spellcheck.xpm", $window, $bg); $tb_item2->set_icon_widget($spell_widget_icon); $tb_item2->show; $toolbar->append_widget($tb_item2,"", ""); Now what I want is that the button honors the Gtk2::ToolbarStyle setting (icons, text, both) which I have set for the rest of the toolbar with $toolbar->set_style. How do I do this? Ciao Florian --=----==--===-====---=-=-=--=-=-----=----= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Get my DSA key from: www.netego.de/hpc?p=download&l=en iD8DBQBBXYdk+2lxodi1OoURAvmIAJ9A0wpIqyUwWNpaA+9jZ4KrMSRLfACfQT9M pBsvJP695het7Ze5q7xrTic= =lKQq -----END PGP SIGNATURE----- --=----==--===-====---=-=-=--=-=-----=----=-- From scott@asofyet.org Fri Oct 1 13:47:26 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6668D3B0EDB for ; Fri, 1 Oct 2004 13:47:26 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03232-01 for ; Fri, 1 Oct 2004 13:47:24 -0400 (EDT) Received: from chococat.sd.dreamhost.com (chococat.sd.dreamhost.com [66.33.206.16]) by menubar.gnome.org (Postfix) with ESMTP id 776C63B0D88 for ; Fri, 1 Oct 2004 13:47:24 -0400 (EDT) Received: from webmail.asofyet.org (localhost [127.0.0.1]) by chococat.sd.dreamhost.com (Postfix) with SMTP id 42A97FAB8 for ; Fri, 1 Oct 2004 10:47:21 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user scott@asofyet.org) by webmail.asofyet.org with HTTP; Fri, 1 Oct 2004 13:47:21 -0400 (EDT) Message-ID: <15056.192.146.101.26.1096652841.spork@webmail.asofyet.org> In-Reply-To: <004f01c4a745$32c3eee0$6e01a8c0@John98> References: <1096491865.29860.57.camel@beta.local> <004f01c4a745$32c3eee0$6e01a8c0@John98> Date: Fri, 1 Oct 2004 13:47:21 -0400 (EDT) From: "muppet" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: RE: Segmentation Fault when trying to make Glib 1.06 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 17:47:26 -0000 John Ellis said: > t/1....dubious > Test returned status 0 (wstat 11, 0xb) this usually means that the test program segfaulted before anything else. unfortunately this is hiding stdout from us. it appears that you managed to get the shared object built, but you can't load it, either to run a test or to query the runtime for documentation information. try this set of commands: $ script # to capture all of the output in this session to a file $ gdb perl ...(eventually you'll get a prompt)... (gdb) run -Mblib t/1.t ...(perl will load, run, and then crash)... (gdb) backtrace ...(lots of text that will be interesting to us)... (gdb) quit $ exit # to stop the script shell this will create a file called typescript; please email that to us. the gdb command "run -Mblib t/1.t" is the same as doing "perl -Mblib t/1.t" from your shell; this executes only that test, outside of the test harness. the test harness traps some of the output of the test script, but in this situation i'd like to know how far along the test script got before it bombed. -- muppet From ofey_aikon@yahoo.com Fri Oct 1 18:47:12 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E2E43B0885 for ; Fri, 1 Oct 2004 18:47:12 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16429-02 for ; Fri, 1 Oct 2004 18:47:10 -0400 (EDT) Received: from web60209.mail.yahoo.com (web60209.mail.yahoo.com [216.109.118.104]) by menubar.gnome.org (Postfix) with SMTP id E4E623B08B9 for ; Fri, 1 Oct 2004 18:47:09 -0400 (EDT) Message-ID: <20041001224709.20126.qmail@web60209.mail.yahoo.com> Received: from [4.10.36.53] by web60209.mail.yahoo.com via HTTP; Fri, 01 Oct 2004 15:47:09 PDT Date: Fri, 1 Oct 2004 15:47:09 -0700 (PDT) From: ofey aikon To: gtk-perl-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org Subject: Can I get a handle to the cell on which the button click occurs ( treeview) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 22:47:12 -0000 I want to highlight a single cell (and not the entire row) by clicking on that cell in a tree_view. I know I can get the column and row of the cell using the following code. But is it possible to select the cell at this coords and then set the background color to something. my ($x, $y) = $event->get_coords; my ($path, $column, $cell_x, $cell_y) = $tree_view_full->get_path_at_pos ($x, $y); my $column_title = $column->get_title; my $path_string = $path->to_string; Thanks, _Ofey. __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From scott@asofyet.org Sat Oct 2 00:02:13 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B1E1E3B0949 for ; Sat, 2 Oct 2004 00:02:13 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25502-05 for ; Sat, 2 Oct 2004 00:02:12 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id BEC7E3B066F for ; Sat, 2 Oct 2004 00:02:09 -0400 (EDT) Received: from [192.168.0.100] (adsl-1116.mis.net [12.162.183.102]) by merry.dreamhost.com (Postfix) with ESMTP id E31D917510E for ; Fri, 1 Oct 2004 21:02:04 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <20041001224709.20126.qmail@web60209.mail.yahoo.com> References: <20041001224709.20126.qmail@web60209.mail.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: muppet Date: Sat, 2 Oct 2004 00:02:03 -0400 To: gtk-perl mailing list X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Can I get a handle to the cell on which the button click occurs ( treeview) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2004 04:02:13 -0000 On Oct 1, 2004, at 6:47 PM, ofey aikon wrote: > I know I can get the column and row of the cell using the following > code. But is it possible to > select the cell at this coords and then set the background color to > something. there isn't a cell object that corresponds to a specific row and column address. each column contains some number of cell renderers that are used to draw each row in turn; that is, one cell renderer renders many rows. i don't know that there's an easy way to do what you're wanting to do. it sounds like you're wanting to use the TreeView as a sheet or grid widget, and it's simply not designed to work that way. -- Brian: If i recall correctly, this is the physics department. Chris: That explains all that gravity. -- Family Guy, "The Story on Page One" From mj+gnome@ml.m-j-s.net Sun Oct 3 15:05:40 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E176A3B006D for ; Sun, 3 Oct 2004 15:05:39 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16040-07 for ; Sun, 3 Oct 2004 15:05:38 -0400 (EDT) Received: from morannon.fido.de (morannon.fido.de [213.61.255.225]) by menubar.gnome.org (Postfix) with ESMTP id 429E23B06E7 for ; Sun, 3 Oct 2004 15:05:35 -0400 (EDT) Received: from [217.228.12.243] (pD9E40CF3.dip.t-dialin.net [217.228.12.243]) (authenticated bits=0) by morannon.fido.de (8.12.8/8.12.8/redhat9-morannon-1.1a) with ESMTP id i93J36XZ027313 for ; Sun, 3 Oct 2004 21:03:07 +0200 Message-ID: <41604D7C.9030807@ml.m-j-s.net> Date: Sun, 03 Oct 2004 21:05:32 +0200 From: Martin Junius User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Gtk2::TreeView and friends: set_selectable()? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2004 19:05:40 -0000 Hi all! In the progress of converting a CTree application to TreeView/TreeStore I came across the following, where I haven't found an answer to yet: How do I make specific rows un-selectable? With CTree I'd be using something like $tree->node_set_selectable($node, 0); Any ideas or hints? Martin From scott@asofyet.org Sun Oct 3 15:31:57 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9BD3F3B08FF for ; Sun, 3 Oct 2004 15:31:57 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17071-10 for ; Sun, 3 Oct 2004 15:31:56 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id 9DC3C3B0895 for ; Sun, 3 Oct 2004 15:31:55 -0400 (EDT) Received: from [192.168.0.100] (adsl-1116.mis.net [12.162.183.102]) by smeagol.dreamhost.com (Postfix) with ESMTP id 7F35A2383A; Sun, 3 Oct 2004 12:31:54 -0700 (PDT) In-Reply-To: <41604D7C.9030807@ml.m-j-s.net> References: <41604D7C.9030807@ml.m-j-s.net> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: muppet Date: Sun, 3 Oct 2004 15:31:53 -0400 To: Martin Junius X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: Gtk2::TreeView and friends: set_selectable()? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2004 19:31:57 -0000 On Oct 3, 2004, at 3:05 PM, Martin Junius wrote: > In the progress of converting a CTree application to > TreeView/TreeStore I came across the following, where I haven't found > an answer to yet: > > How do I make specific rows un-selectable? With CTree I'd be using > something like > $tree->node_set_selectable($node, 0); > Any ideas or hints? http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeSelection.html#gtk- tree-selection-set-select-function http://developer.gnome.org/doc/API/2.0/gtk/ GtkTreeSelection.html#GtkTreeSelectionFunc translates to perl as: $treeview->get_selection->set_select_function (\&selectable_filter); sub selectable_filter { my ($selection, $model, $path, $is_path_currently_selected) = @_; # return true if the selection state can be toggled return rand(10) > 5; } -- Without treatment, a common cold will last about seven days. With treatment, it will last about a week. -- conventional wisdom From ofey_aikon@yahoo.com Sun Oct 3 20:12:37 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3D8B33B101A for ; Sun, 3 Oct 2004 20:12:37 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30379-05 for ; Sun, 3 Oct 2004 20:12:36 -0400 (EDT) Received: from web60202.mail.yahoo.com (web60202.mail.yahoo.com [216.109.118.97]) by menubar.gnome.org (Postfix) with SMTP id 24B713B0DC4 for ; Sun, 3 Oct 2004 20:12:36 -0400 (EDT) Message-ID: <20041004001235.47338.qmail@web60202.mail.yahoo.com> Received: from [4.10.36.53] by web60202.mail.yahoo.com via HTTP; Sun, 03 Oct 2004 17:12:35 PDT Date: Sun, 3 Oct 2004 17:12:35 -0700 (PDT) From: ofey aikon To: gtk-perl-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org Subject: Unable to see the icon with Gtk2::ImageMenuItem X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 00:12:37 -0000 What am I doing wrong in the following code ? I searched around quite a bit but couldn't figure out. In the following code, my intention is to create a menu with two items in it. I'd like to have pretty icons attached to each menuitem too. I can see both the items in the menu, but only the first one has the icon (the home icon) and text ('Home') attached to it. The second one has only the text ('Save the world'), but no icon attached to it. I guess I am not using the set_image in the right fashion. my $menu = Gtk2::Menu->new(); my $menuitem1 = Gtk2::ImageMenuItem->new_from_stock('gtk-home', Gtk2::AccelGroup->new); my $menuitem2 = Gtk2::ImageMenuItem->new("Save the world"); $menuitem2->set_image(Gtk2::Image->new_from_stock ('gtk-save', 'GTK_ICON_SIZE_MENU')); $menuitem1->show(); $menuitem2->show(); $menu->append($menuitem1); $menu->append($menuitem2); __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From scott@asofyet.org Mon Oct 4 08:05:51 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A29EC3B0BA9 for ; Mon, 4 Oct 2004 08:05:49 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22354-04 for ; Mon, 4 Oct 2004 08:05:46 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id B58BC3B0FE8 for ; Mon, 4 Oct 2004 08:04:45 -0400 (EDT) Received: from [192.168.0.100] (adsl-1116.mis.net [12.162.183.102]) by merry.dreamhost.com (Postfix) with ESMTP id 92B96175115; Mon, 4 Oct 2004 05:04:43 -0700 (PDT) In-Reply-To: <20041004001235.47338.qmail@web60202.mail.yahoo.com> References: <20041004001235.47338.qmail@web60202.mail.yahoo.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <93DF719C-15FD-11D9-9F23-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Mon, 4 Oct 2004 08:04:43 -0400 To: ofey aikon X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: Unable to see the icon with Gtk2::ImageMenuItem X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 12:05:51 -0000 On Oct 3, 2004, at 8:12 PM, ofey aikon wrote: > I can see both the items in the menu, but only the first one has the > icon (the home icon) and text ('Home') attached to it. The second one > has only the text ('Save the world'), but no icon attached to it. works for me -- i see a little floppy drive next to "Save the world". -- Walk softly, and carry a BFG-9000. -- unknown From kju@fqdn.org Mon Oct 4 11:13:24 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 75EEC3B114E for ; Mon, 4 Oct 2004 11:13:24 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31792-07 for ; Mon, 4 Oct 2004 11:13:22 -0400 (EDT) Received: from mail.keleos.net (zeus.keleos.net [217.160.107.39]) by menubar.gnome.org (Postfix) with SMTP id C35723B0B66 for ; Mon, 4 Oct 2004 11:13:17 -0400 (EDT) Received: (qmail 10510 invoked by uid 1000); 4 Oct 2004 15:13:17 -0000 Date: Mon, 4 Oct 2004 17:13:17 +0200 From: Michael Holzt To: gtk-perl-list@gnome.org Message-ID: <20041004151317.GC557@fqdn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org Subject: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 15:13:25 -0000 I already googled for hours and asked others but got no real hint: Is it possible to have a gtk-perl program output a window which will always stay on top? Background: For a linux pc pool i'm developing a popup program which can be triggered remotely for shutting down the system. The popup should always stay on top so that the user sees it and the time left until shutdown. Any hints appreciated. -kju -- It's an insane world, but i'm proud to be a part of it. -- Bill Hicks From dams@idm.fr Mon Oct 4 11:21:55 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30DF23B1207 for ; Mon, 4 Oct 2004 11:21:55 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32421-08 for ; Mon, 4 Oct 2004 11:21:52 -0400 (EDT) Received: from isis.idm.fr (isis.idm.fr [62.160.32.10]) by menubar.gnome.org (Postfix) with ESMTP id 2C5113B1235 for ; Mon, 4 Oct 2004 11:21:45 -0400 (EDT) Received: from [10.0.0.8] (petit2.idm.fr [10.0.0.8]) by isis.idm.fr (Postfix) with ESMTP id 5184E4F966; Mon, 4 Oct 2004 17:21:44 +0200 (CEST) Message-ID: <41616A2C.9010501@idm.fr> Date: Mon, 04 Oct 2004 17:20:12 +0200 From: dams User-Agent: Mozilla Thunderbird 0.8 (X11/20040928) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Holzt References: <20041004151317.GC557@fqdn.org> In-Reply-To: <20041004151317.GC557@fqdn.org> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 15:21:55 -0000 Michael Holzt wrote: > I already googled for hours and asked others but got no real hint: Is it > possible to have a gtk-perl program output a window which will always stay > on top? > > Background: For a linux pc pool i'm developing a popup program which can > be triggered remotely for shutting down the system. The popup should always > stay on top so that the user sees it and the time left until shutdown. > > Any hints appreciated. > > > -kju > Just set it as a MENU window, it'll be always on top. when creating a window, you can pass argument to the new() method. Check the doc -- dams From kju@fqdn.org Mon Oct 4 11:49:52 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 571B13B0F11 for ; Mon, 4 Oct 2004 11:49:52 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01518-05 for ; Mon, 4 Oct 2004 11:49:51 -0400 (EDT) Received: from mail.keleos.net (zeus.keleos.net [217.160.107.39]) by menubar.gnome.org (Postfix) with SMTP id 96C353B11B4 for ; Mon, 4 Oct 2004 11:49:50 -0400 (EDT) Received: (qmail 13884 invoked by uid 1000); 4 Oct 2004 15:49:49 -0000 Date: Mon, 4 Oct 2004 17:49:49 +0200 From: Michael Holzt To: gtk-perl-list@gnome.org Message-ID: <20041004154949.GA13213@fqdn.org> References: <20041004151317.GC557@fqdn.org> <41616A2C.9010501@idm.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <41616A2C.9010501@idm.fr> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 15:49:52 -0000 > Just set it as a MENU window, it'll be always on top. when creating a > window, you can pass argument to the new() method. Check the doc It seems that Gtk::Window->new only supports window types 'toplevel', 'dialog' and 'popup'. The 'popup' type will stay on top, but it has no decoration and can not be moved. This is not what i'm searching for. -kju -- It's an insane world, but i'm proud to be a part of it. -- Bill Hicks From listbox@netego.de Mon Oct 4 11:58:33 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1C2E93B0AFE for ; Mon, 4 Oct 2004 11:58:33 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01789-08 for ; Mon, 4 Oct 2004 11:58:31 -0400 (EDT) Received: from dexter.netego.de (pD9E1CE0D.dip.t-dialin.net [217.225.206.13]) by menubar.gnome.org (Postfix) with ESMTP id 927963B1336 for ; Mon, 4 Oct 2004 11:58:28 -0400 (EDT) Received: from dexter.netego.de (localhost [127.0.0.1]) by dexter.netego.de (8.12.2/8.12.2) with SMTP id i94FwPiR002103 for ; Mon, 4 Oct 2004 17:58:25 +0200 Message-Id: <200410041558.i94FwPiR002103@dexter.netego.de> Content-Type: multipart/signed; boundary="--=--==-=----=====--=======-=---=-====-=-"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Disposition: inline Mime-Version: 1.0 From: "Florian Schaefer" To: "Gtk-Perl" X-Mailer: Pronto v2.5.0-fs On linux/mysql Date: Mon, 4 Oct 2004 17:58:24 +0200 In-Reply-To: <200410011635.i91GZnIm001962@zini.netego.de> References: <200410011635.i91GZnIm001962@zini.netego.de> X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: style of Gtk2::ToggleToolButton X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Florian Schaefer List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 15:58:33 -0000 ----=--==-=----=====--=======-=---=-====-=- Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Ok, it seems that this cannot be done directly. Then I'd like to put the question this way: How do I create a ToggleButton in a toolbar that displays either text, an icon, or an icon with text, thus emulating the desired behaviour? Ciao Florian On Fri, 1 Oct 2004 18:35:44 +0200, Florian Schaefer said: > Hi, >=20 > I've added a ToggleToolButton to a toolbar with the following lines of > code (&new_pixmap returns a Gtk2::Image): >=20 > $tb_item2 =3D Gtk2::ToggleToolButton->new; > $tb_item2->set_label("Spelling"); > $spell_widget_icon =3D &new_pixmap("spellcheck.xpm", $window, $bg); > $tb_item2->set_icon_widget($spell_widget_icon); > $tb_item2->show; > $toolbar->append_widget($tb_item2,"", ""); >=20 > Now what I want is that the button honors the Gtk2::ToolbarStyle setting > (icons, text, both) which I have set for the rest of the toolbar with > $toolbar->set_style. >=20 > How do I do this? >=20 > Ciao > Florian ----=--==-=----=====--=======-=---=-====-=- Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: Get my DSA key from: www.netego.de/hpc?p=download&l=en iD8DBQBBYXMg+2lxodi1OoURApPSAKCcNws9Uasery1mkGTG7i3hdoC88QCfVKb4 ChmoM6C74AAW4PZtfgyObPk= =4oak -----END PGP SIGNATURE----- ----=--==-=----=====--=======-=---=-====-=--- From dams@idm.fr Mon Oct 4 12:06:08 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 37ECB3B165D for ; Mon, 4 Oct 2004 12:06:08 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02865-04 for ; Mon, 4 Oct 2004 12:06:05 -0400 (EDT) Received: from isis.idm.fr (isis.idm.fr [62.160.32.10]) by menubar.gnome.org (Postfix) with ESMTP id F07303B166F for ; Mon, 4 Oct 2004 12:05:17 -0400 (EDT) Received: from [62.160.32.65] (krotkine.idm.fr [62.160.32.65]) by isis.idm.fr (Postfix) with ESMTP id 76E584F966; Mon, 4 Oct 2004 18:05:17 +0200 (CEST) Message-ID: <41617461.2020404@idm.fr> Date: Mon, 04 Oct 2004 18:03:45 +0200 From: dams User-Agent: Mozilla Thunderbird 0.8 (X11/20040928) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Holzt References: <20041004151317.GC557@fqdn.org> <41616A2C.9010501@idm.fr> <20041004154949.GA13213@fqdn.org> In-Reply-To: <20041004154949.GA13213@fqdn.org> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 16:06:08 -0000 Michael Holzt wrote: >>Just set it as a MENU window, it'll be always on top. when creating a >>window, you can pass argument to the new() method. Check the doc > > > It seems that Gtk::Window->new only supports window types 'toplevel', > 'dialog' and 'popup'. The 'popup' type will stay on top, but it has > no decoration and can not be moved. This is not what i'm searching > for. > > -kju > that's true, that's popup I used. I didn't do anything else I'm afraid -- dams From newren@gmail.com Mon Oct 4 12:08:48 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6FF573B106F for ; Mon, 4 Oct 2004 12:08:48 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03013-07 for ; Mon, 4 Oct 2004 12:08:47 -0400 (EDT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by menubar.gnome.org (Postfix) with ESMTP id CC7823B15FF for ; Mon, 4 Oct 2004 12:08:46 -0400 (EDT) Received: by mproxy.gmail.com with SMTP id 79so3823955rnk for ; Mon, 04 Oct 2004 09:08:46 -0700 (PDT) Received: by 10.38.171.77 with SMTP id t77mr6107429rne; Mon, 04 Oct 2004 09:08:44 -0700 (PDT) Received: by 10.38.77.41 with HTTP; Mon, 4 Oct 2004 09:08:44 -0700 (PDT) Message-ID: <51419b2c04100409082876d316@mail.gmail.com> Date: Mon, 4 Oct 2004 10:08:44 -0600 From: Elijah Newren To: Michael Holzt In-Reply-To: <20041004154949.GA13213@fqdn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20041004151317.GC557@fqdn.org> <41616A2C.9010501@idm.fr> <20041004154949.GA13213@fqdn.org> X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Elijah Newren List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 16:08:48 -0000 On Mon, 4 Oct 2004 17:49:49 +0200, Michael Holzt wrote: > > Just set it as a MENU window, it'll be always on top. when creating a > > window, you can pass argument to the new() method. Check the doc > > It seems that Gtk::Window->new only supports window types 'toplevel', > 'dialog' and 'popup'. The 'popup' type will stay on top, but it has > no decoration and can not be moved. This is not what i'm searching > for. You could set the window type to DOCK. This won't give decorations, but it does allow moving and make the window be on top. I believe that there is not gtk+ function to do this (and thus probably no gtk2-perl function), so it would depend on whether there's perl bindings to Xlib. gnome-panel provides a good example of how to do this in C (see the xstuff_set_wmspec_dock_hints function in gnome-panel/gnome-panel/xstuff.c), and if there are perl bindings to Xlib (in particular for XChangeProperty), then this example should be fairly easy to translate to perl. Hope that helps, Elijah From jens@wilke.org Mon Oct 4 12:28:31 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7600B3B0014 for ; Mon, 4 Oct 2004 12:28:31 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03998-09 for ; Mon, 4 Oct 2004 12:28:29 -0400 (EDT) Received: from mail01.global-planets.de (www.globalplanets.net [62.75.136.58]) by menubar.gnome.org (Postfix) with ESMTP id 03E9A3B0669 for ; Mon, 4 Oct 2004 12:28:27 -0400 (EDT) Received: from router.home (td90918a3.pool.terralink.de [217.9.24.163]) by mail01.global-planets.de (Postfix) with ESMTP id 44D334400D; Mon, 4 Oct 2004 17:36:21 +0200 (CEST) Received: from hoevels.home ([192.168.1.10]) by router.home with esmtp (Cipher TLSv1:RC4-MD5:128) (Exim 3.35 #1 (Debian)) id 1CEVf4-0008Kt-00; Mon, 04 Oct 2004 18:26:06 +0200 From: Jens Wilke To: gtk-perl-list@gnome.org Date: Mon, 4 Oct 2004 18:28:13 +0200 User-Agent: KMail/1.6.2 References: <20041004151317.GC557@fqdn.org> In-Reply-To: <20041004151317.GC557@fqdn.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200410041828.13585.jens@wilke.org> X-Virus-Scanned: by amavisd-new at gnome.org Cc: Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 16:28:31 -0000 On Montag, 4. Oktober 2004 17:13, Michael Holzt wrote: > it possible to have a gtk-perl program output a window which will > always stay on top? $window->set_keep_above (1); HTH, Jens From kju@fqdn.org Mon Oct 4 12:39:35 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3291F3B11F5 for ; Mon, 4 Oct 2004 12:39:35 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04625-03 for ; Mon, 4 Oct 2004 12:39:33 -0400 (EDT) Received: from mail.keleos.net (zeus.keleos.net [217.160.107.39]) by menubar.gnome.org (Postfix) with SMTP id 31BEB3B1178 for ; Mon, 4 Oct 2004 12:39:33 -0400 (EDT) Received: (qmail 16386 invoked by uid 1000); 4 Oct 2004 16:39:32 -0000 Date: Mon, 4 Oct 2004 18:39:32 +0200 From: Michael Holzt To: gtk-perl-list@gnome.org Message-ID: <20041004163932.GA14708@fqdn.org> References: <20041004151317.GC557@fqdn.org> <200410041828.13585.jens@wilke.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <200410041828.13585.jens@wilke.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 16:39:35 -0000 > $window->set_keep_above (1); Hmm, seems to be gtk2-perl only. -kju -- It's an insane world, but i'm proud to be a part of it. -- Bill Hicks From pagaltzis@gmx.de Mon Oct 4 12:55:38 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36E203B168D for ; Mon, 4 Oct 2004 12:55:38 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05470-10 for ; Mon, 4 Oct 2004 12:55:35 -0400 (EDT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 91FA93B1689 for ; Mon, 4 Oct 2004 12:55:30 -0400 (EDT) Received: (qmail 25439 invoked by uid 65534); 4 Oct 2004 16:55:29 -0000 Received: from xdsl-81-173-175-70.netcologne.de (EHLO klangraum) (81.173.175.70) by mail.gmx.net (mp003) with SMTP; 04 Oct 2004 18:55:29 +0200 X-Authenticated: #163624 Date: Mon, 4 Oct 2004 18:55:28 +0200 From: "A. Pagaltzis" To: Gtk-Perl Message-ID: <20041004165528.GA9691@klangraum> Mail-Followup-To: Gtk-Perl References: <200410011635.i91GZnIm001962@zini.netego.de> <200410041558.i94FwPiR002103@dexter.netego.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200410041558.i94FwPiR002103@dexter.netego.de> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: style of Gtk2::ToggleToolButton X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 16:55:38 -0000 * Florian Schaefer [2004-10-04 18:00]: > How do I create a ToggleButton in a toolbar that displays > either text, an icon, or an icon with text, thus emulating the > desired behaviour? Judging from your previous code and this question, I'd say you want to create a new stock item. Regards, -- Aristotle "If you can't laugh at yourself, you don't take life seriously enough." From scott@asofyet.org Mon Oct 4 13:04:26 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F22DF3B124B for ; Mon, 4 Oct 2004 13:04:25 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05956-02 for ; Mon, 4 Oct 2004 13:04:21 -0400 (EDT) Received: from chococat.sd.dreamhost.com (chococat.sd.dreamhost.com [66.33.206.16]) by menubar.gnome.org (Postfix) with ESMTP id 7D2433B164B for ; Mon, 4 Oct 2004 13:03:34 -0400 (EDT) Received: from webmail.asofyet.org (localhost [127.0.0.1]) by chococat.sd.dreamhost.com (Postfix) with SMTP id E1E4BFA4A for ; Mon, 4 Oct 2004 10:03:30 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user scott@asofyet.org) by webmail.asofyet.org with HTTP; Mon, 4 Oct 2004 13:03:30 -0400 (EDT) Message-ID: <17059.192.146.101.26.1096909410.spork@webmail.asofyet.org> In-Reply-To: <20041004163932.GA14708@fqdn.org> References: <20041004151317.GC557@fqdn.org> <200410041828.13585.jens@wilke.org> <20041004163932.GA14708@fqdn.org> Date: Mon, 4 Oct 2004 13:03:30 -0400 (EDT) From: "muppet" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 17:04:26 -0000 Michael Holzt said: >> $window->set_keep_above (1); > > Hmm, seems to be gtk2-perl only. eh? it's a binding for gtk_window_set_keep_above(), which was added in gtk+ 2.4.0: http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-keep-above it uses window manager hints to achieve the keepaboveness, so it should work for any X window, not just ones created by gtk2-perl. you would have to use a compatible window manager, however. you might also consider set_type_hint: http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-type-hint http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#GdkWindowTypeHint -- muppet From jens@wilke.org Mon Oct 4 13:06:48 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3596C3B0014 for ; Mon, 4 Oct 2004 13:06:48 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06032-10 for ; Mon, 4 Oct 2004 13:06:45 -0400 (EDT) Received: from mail01.global-planets.de (www.globalplanets.net [62.75.136.58]) by menubar.gnome.org (Postfix) with ESMTP id C9B123B11A7 for ; Mon, 4 Oct 2004 13:05:38 -0400 (EDT) Received: from router.home (td90918a3.pool.terralink.de [217.9.24.163]) by mail01.global-planets.de (Postfix) with ESMTP id 9AAB34400D; Mon, 4 Oct 2004 18:13:30 +0200 (CEST) Received: from hoevels.home ([192.168.1.10]) by router.home with esmtp (Cipher TLSv1:RC4-MD5:128) (Exim 3.35 #1 (Debian)) id 1CEWF2-0004Gl-00; Mon, 04 Oct 2004 19:03:16 +0200 From: Jens Wilke To: gtk-perl-list@gnome.org Date: Mon, 4 Oct 2004 19:05:23 +0200 User-Agent: KMail/1.6.2 References: <20041004151317.GC557@fqdn.org> <200410041828.13585.jens@wilke.org> <20041004163932.GA14708@fqdn.org> In-Reply-To: <20041004163932.GA14708@fqdn.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200410041905.23407.jens@wilke.org> X-Virus-Scanned: by amavisd-new at gnome.org Cc: Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 17:06:48 -0000 On Montag, 4. Oktober 2004 18:39, Michael Holzt wrote: > > $window->set_keep_above (1); > > Hmm, seems to be gtk2-perl only. No, but there are limitations: http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-keep-above Rgds, Jens From listbox@netego.de Mon Oct 4 14:15:10 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5134E3B0F05 for ; Mon, 4 Oct 2004 14:15:10 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08759-02 for ; Mon, 4 Oct 2004 14:15:09 -0400 (EDT) Received: from zini.netego.de (pD9E1CE0D.dip.t-dialin.net [217.225.206.13]) by menubar.gnome.org (Postfix) with ESMTP id 44D363B0E09 for ; Mon, 4 Oct 2004 14:15:08 -0400 (EDT) Received: from zini.netego.de (localhost.localdomain [127.0.0.1]) by zini.netego.de (8.13.1/8.13.1) with SMTP id i94I4BDL002086 for ; Mon, 4 Oct 2004 20:04:12 +0200 Message-Id: <200410041804.i94I4BDL002086@zini.netego.de> Content-Type: multipart/signed; boundary="=-=-=-==--==---==----=--=-=----=====---=="; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Disposition: inline MIME-Version: 1.0 From: "Florian Schaefer" To: "Gtk-Perl" X-Mailer: Pronto v3.0.0-fs On linux/mysql Date: Mon, 4 Oct 2004 20:04:10 +0200 In-Reply-To: <20041004165528.GA9691@klangraum> References: <200410011635.i91GZnIm001962@zini.netego.de><200410041558.i94FwPiR002103@dexter.netego.de> <20041004165528.GA9691@klangraum> X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: style of Gtk2::ToggleToolButton X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Florian Schaefer List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 18:15:10 -0000 --=-=-=-==--==---==----=--=-=----=====---== Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Mon, 4 Oct 2004 18:55:28 +0200, A. Pagaltzis said: >* Florian Schaefer [2004-10-04 18:00]: > > How do I create a ToggleButton in a toolbar that displays > > either text, an icon, or an icon with text, thus emulating the > > desired behaviour? >=20 > Judging from your previous code and this question, I'd say you > want to create a new stock item. Hmm, I tend to think that using the whole stock item procedure for one button might be overkill. The rest of the buttons are created with those one-liners: $tb_item1 =3D $toolbar->append_item("Label", "Tooltip", "",&new_pixmap("pix= map.xpm", $window, $bg)); What I can do with the ToggleToolButton right now, is to display text only (just setting a label) and to display text-and-icon (with ->set_icon_widget). However, displaying only an icon is tricky as the space for the label is still reserved, even if it's just "". Can't I somehow hide the label widget? Ciao Florian --=-=-=-==--==---==----=--=-=----=====---== Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Get my DSA key from: www.netego.de/hpc?p=download&l=en iD8DBQBBYZCa+2lxodi1OoURApJXAJ9fC4MwWn3sbmpM7judu8bPtTlI+wCfYzIx 5OBUL7/cD+xfqsIOx9NsTWk= =Jfmm -----END PGP SIGNATURE----- --=-=-=-==--==---==----=--=-=----=====---==-- From kju@fqdn.org Mon Oct 4 16:14:07 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 67C1A3B072F for ; Mon, 4 Oct 2004 16:14:06 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15184-10 for ; Mon, 4 Oct 2004 16:14:02 -0400 (EDT) Received: from mail.keleos.net (zeus.keleos.net [217.160.107.39]) by menubar.gnome.org (Postfix) with SMTP id 61DDE3B06B8 for ; Mon, 4 Oct 2004 16:14:00 -0400 (EDT) Received: (qmail 24801 invoked by uid 1000); 4 Oct 2004 20:13:59 -0000 Date: Mon, 4 Oct 2004 22:13:59 +0200 From: Michael Holzt To: gtk-perl-list@gnome.org Message-ID: <20041004201359.GB23905@fqdn.org> References: <20041004151317.GC557@fqdn.org> <200410041828.13585.jens@wilke.org> <20041004163932.GA14708@fqdn.org> <200410041905.23407.jens@wilke.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <200410041905.23407.jens@wilke.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 20:14:07 -0000 > > > $window->set_keep_above (1); > > Hmm, seems to be gtk2-perl only. > No, but there are limitations: I've tried libgtk-perl from debian unstable (version 0.7009-1.1) and even checked with the source, and i stick with what i say: there is no support for set_keep_above in it. Only libgtk2-perl does contain support for this. -kju -- It's an insane world, but i'm proud to be a part of it. -- Bill Hicks From bulb@ucw.cz Mon Oct 4 16:52:19 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8D3F43B1675 for ; Mon, 4 Oct 2004 16:52:19 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17581-01 for ; Mon, 4 Oct 2004 16:52:17 -0400 (EDT) Received: from vagabond.light.src (cimice4.lam.cz [212.71.168.94]) by menubar.gnome.org (Postfix) with ESMTP id 3D47F3B15FD for ; Mon, 4 Oct 2004 16:52:16 -0400 (EDT) Received: from bulb by vagabond.light.src with local (Exim 3.36 #1 (Debian)) id 1CEZoU-0005YU-00; Mon, 04 Oct 2004 22:52:06 +0200 Date: Mon, 4 Oct 2004 22:52:06 +0200 From: Jan Hudec To: Michael Holzt Message-ID: <20041004205206.GC20407@vagabond> References: <20041004151317.GC557@fqdn.org> <200410041828.13585.jens@wilke.org> <20041004163932.GA14708@fqdn.org> <200410041905.23407.jens@wilke.org> <20041004201359.GB23905@fqdn.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0lnxQi9hkpPO77W3" Content-Disposition: inline In-Reply-To: <20041004201359.GB23905@fqdn.org> User-Agent: Mutt/1.5.6+20040907i Sender: Jan Hudec X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 20:52:19 -0000 --0lnxQi9hkpPO77W3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 04, 2004 at 22:13:59 +0200, Michael Holzt wrote: > > > > $window->set_keep_above (1); > > > Hmm, seems to be gtk2-perl only. > > No, but there are limitations: >=20 > I've tried libgtk-perl from debian unstable (version 0.7009-1.1) and=20 > even checked with the source, and i stick with what i say: there is > no support for set_keep_above in it. You are not supposed to try gtk-perl. gtk-perl is obsolete by ages! Just as gtk+1.2 is. > Only libgtk2-perl does contain support for this. Which is what you should be using. ---------------------------------------------------------------------------= ---- Jan 'Bulb' Hudec --0lnxQi9hkpPO77W3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBYbf2Rel1vVwhjGURAq0vAJ9n7y85jGQGruE9s37FDQllgnyGzgCgjwF9 C5njLo64Z57gaFfcarORiok= =Iben -----END PGP SIGNATURE----- --0lnxQi9hkpPO77W3-- From kju@fqdn.org Mon Oct 4 17:26:44 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 253A63B16D9 for ; Mon, 4 Oct 2004 17:26:44 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19502-07 for ; Mon, 4 Oct 2004 17:26:42 -0400 (EDT) Received: from mail.keleos.net (zeus.keleos.net [217.160.107.39]) by menubar.gnome.org (Postfix) with SMTP id 0E79B3B16CF for ; Mon, 4 Oct 2004 17:26:42 -0400 (EDT) Received: (qmail 26746 invoked by uid 1000); 4 Oct 2004 21:26:41 -0000 Date: Mon, 4 Oct 2004 23:26:41 +0200 From: Michael Holzt To: gtk-perl-list@gnome.org Message-ID: <20041004212641.GB25784@fqdn.org> References: <20041004151317.GC557@fqdn.org> <200410041828.13585.jens@wilke.org> <20041004163932.GA14708@fqdn.org> <200410041905.23407.jens@wilke.org> <20041004201359.GB23905@fqdn.org> <20041004205206.GC20407@vagabond> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20041004205206.GC20407@vagabond> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 21:26:44 -0000 > You are not supposed to try gtk-perl. gtk-perl is obsolete by ages! Just > as gtk+1.2 is. Argh, i did not knew that. And now i've just finished my application in gtk-perl. Is there an easy way to convert it to gtk2-perl? -kju -- It's an insane world, but i'm proud to be a part of it. -- Bill Hicks From scott@asofyet.org Mon Oct 4 17:55:28 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F06343B1335 for ; Mon, 4 Oct 2004 17:55:27 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21036-03 for ; Mon, 4 Oct 2004 17:55:25 -0400 (EDT) Received: from chococat.sd.dreamhost.com (chococat.sd.dreamhost.com [66.33.206.16]) by menubar.gnome.org (Postfix) with ESMTP id 790353B0D02 for ; Mon, 4 Oct 2004 17:55:25 -0400 (EDT) Received: from webmail.asofyet.org (localhost [127.0.0.1]) by chococat.sd.dreamhost.com (Postfix) with SMTP id 3FB98FA4E for ; Mon, 4 Oct 2004 14:55:00 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user scott@asofyet.org) by webmail.asofyet.org with HTTP; Mon, 4 Oct 2004 17:55:00 -0400 (EDT) Message-ID: <1131.192.146.101.26.1096926900.spork@webmail.asofyet.org> In-Reply-To: <20041004212641.GB25784@fqdn.org> References: <20041004151317.GC557@fqdn.org> <200410041828.13585.jens@wilke.org><20041004163932.GA14708@fqdn.org><200410041905.23407.jens@wilke.org><20041004201359.GB23905@fqdn.org> <20041004205206.GC20407@vagabond> <20041004212641.GB25784@fqdn.org> Date: Mon, 4 Oct 2004 17:55:00 -0400 (EDT) From: "muppet" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 21:55:28 -0000 Michael Holzt said: > Jan exclaimed: >> You are not supposed to try gtk-perl. gtk-perl is obsolete by ages! Just >> as gtk+1.2 is. > > Argh, i did not knew that. And now i've just finished my application in > gtk-perl. i'm sorry. we have a vocal party line here and in irc ("don't use Gtk-Perl, use Gtk2-Perl!") but have not been able to get any mention of gtk2-perl on gtkperl.org, despite many tries. > Is there an easy way to convert it to gtk2-perl? not really, you just have to port it. it's not actually very hard. the beginnings of porting guide are in CVS: http://cvs.sourceforge.net/viewcvs.py/gtk2-perl/gtk2-perl-xs/doc/porting.pod?rev=1.1&view=auto -- muppet From pagaltzis@gmx.de Mon Oct 4 18:10:29 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8445E3B16C0 for ; Mon, 4 Oct 2004 18:10:29 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21665-06 for ; Mon, 4 Oct 2004 18:10:27 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id ADBBC3B16E7 for ; Mon, 4 Oct 2004 18:10:26 -0400 (EDT) Received: (qmail 23954 invoked by uid 65534); 4 Oct 2004 22:10:26 -0000 Received: from xdsl-81-173-175-70.netcologne.de (EHLO klangraum) (81.173.175.70) by mail.gmx.net (mp007) with SMTP; 05 Oct 2004 00:10:26 +0200 X-Authenticated: #163624 Date: Tue, 5 Oct 2004 00:10:25 +0200 From: "A. Pagaltzis" To: gtk-perl-list@gnome.org Message-ID: <20041004221025.GA10931@klangraum> Mail-Followup-To: gtk-perl-list@gnome.org References: <20041004151317.GC557@fqdn.org> <20041004205206.GC20407@vagabond> <20041004212641.GB25784@fqdn.org> <1131.192.146.101.26.1096926900.spork@webmail.asofyet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1131.192.146.101.26.1096926900.spork@webmail.asofyet.org> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 22:10:29 -0000 * muppet [2004-10-04 23:56]: > > Is there an easy way to convert it to gtk2-perl? > > not really, you just have to port it. it's not actually very > hard. To be precise, unless you make heavy use of Gtk::CTree and/or ::CList, it should be nearly effortless. Regards, -- Aristotle "If you can't laugh at yourself, you don't take life seriously enough." From eric@lenio.net Tue Oct 5 10:51:41 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7A11C3B100F for ; Tue, 5 Oct 2004 10:51:41 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31459-02 for ; Tue, 5 Oct 2004 10:51:39 -0400 (EDT) Received: from ms-smtp-04.nyroc.rr.com (ms-smtp-04.nyroc.rr.com [24.24.2.58]) by menubar.gnome.org (Postfix) with ESMTP id 71F983B1271 for ; Tue, 5 Oct 2004 10:51:25 -0400 (EDT) Received: from mail.lenio.net (roc-66-67-221-111.rochester.rr.com [66.67.221.111]) by ms-smtp-04.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id i95EotIh017435 for ; Tue, 5 Oct 2004 10:50:56 -0400 (EDT) Received: by mail.lenio.net (Postfix, from userid 500) id B48BC45C9CB; Tue, 5 Oct 2004 10:51:30 -0400 (EDT) Date: Tue, 5 Oct 2004 10:51:30 -0400 From: Eric Lenio To: gtk-perl-list@gnome.org Message-ID: <20041005145130.GB29233@lenio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org Subject: GUI-less app to capture key_press_events only X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 14:51:41 -0000 Hi, I'm new to Gtk2. I have an unusual situation where I want my app to merely capture key_press_events, without having any kind of GUI. Is it possible to do this with Gtk2? If you're wondering why I don't just read from standard input, it is because I want to capture when the control key is pressed. That is, the control key is pressed by itself. I also want to do the same for the shift key and mod key. From pagaltzis@gmx.de Tue Oct 5 11:07:03 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5FA5C3B0E27 for ; Tue, 5 Oct 2004 11:07:03 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32187-01 for ; Tue, 5 Oct 2004 11:07:00 -0400 (EDT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 8D7D73B1270 for ; Tue, 5 Oct 2004 11:06:57 -0400 (EDT) Received: (qmail 4702 invoked by uid 65534); 5 Oct 2004 15:06:56 -0000 Received: from xdsl-213-196-247-31.netcologne.de (EHLO klangraum) (213.196.247.31) by mail.gmx.net (mp011) with SMTP; 05 Oct 2004 17:06:56 +0200 X-Authenticated: #163624 Date: Tue, 5 Oct 2004 17:06:56 +0200 From: "A. Pagaltzis" To: gtk-perl-list@gnome.org Message-ID: <20041005150656.GA18680@klangraum> Mail-Followup-To: gtk-perl-list@gnome.org References: <20041005145130.GB29233@lenio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041005145130.GB29233@lenio.net> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: GUI-less app to capture key_press_events only X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 15:07:03 -0000 * Eric Lenio [2004-10-05 16:52]: > I have an unusual situation where I want my app to merely > capture key_press_events, without having any kind of GUI. > Is it possible to do this with Gtk2? There are programs that capture keys globally, so it is possible in X11 at least; whether Gtk2 provides a means to do it, I don't know though. > If you're wondering why I don't just read from standard input, > it is because I want to capture when the control key is > pressed. That is, the control key is pressed by itself. I > also want to do the same for the shift key and mod key. That sounds like what you want is curses. There is a wrapper module for that on CPAN. Regards, -- Aristotle "If you can't laugh at yourself, you don't take life seriously enough." From eric@lenio.net Tue Oct 5 11:22:35 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B0213B0894 for ; Tue, 5 Oct 2004 11:22:34 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00483-09 for ; Tue, 5 Oct 2004 11:22:32 -0400 (EDT) Received: from ms-smtp-01.nyroc.rr.com (ms-smtp-01.nyroc.rr.com [24.24.2.55]) by menubar.gnome.org (Postfix) with ESMTP id AD4053B07AD for ; Tue, 5 Oct 2004 11:22:28 -0400 (EDT) Received: from mail.lenio.net (roc-66-67-221-111.rochester.rr.com [66.67.221.111]) by ms-smtp-01.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id i95FMOZw025500 for ; Tue, 5 Oct 2004 11:22:24 -0400 (EDT) Received: by mail.lenio.net (Postfix, from userid 500) id 00D7245C9CA; Tue, 5 Oct 2004 11:22:58 -0400 (EDT) Date: Tue, 5 Oct 2004 11:22:58 -0400 From: Eric Lenio To: gtk-perl-list@gnome.org Message-ID: <20041005152258.GA29465@lenio.net> References: <20041005145130.GB29233@lenio.net> <20041005150656.GA18680@klangraum> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041005150656.GA18680@klangraum> User-Agent: Mutt/1.5.6i X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: GUI-less app to capture key_press_events only X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 15:22:35 -0000 On Tue, Oct 05, 2004 at 05:06:56PM +0200, A. Pagaltzis wrote: > > If you're wondering why I don't just read from standard input, > > it is because I want to capture when the control key is > > pressed. That is, the control key is pressed by itself. I > > also want to do the same for the shift key and mod key. > > That sounds like what you want is curses. There is a wrapper > module for that on CPAN. > Actually the issue is related to the Curses.pm module: the problem is that Curses does NOT trigger an event by pressing the control (or shift or mod) key by itself. I fumbled my way through building a very simple Gtk2 app which did recognize the event. But that little test app had a Gtk window, and I want to get away from having any window. From pagaltzis@gmx.de Tue Oct 5 12:44:50 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 915673B0894 for ; Tue, 5 Oct 2004 12:44:48 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04713-08 for ; Tue, 5 Oct 2004 12:44:46 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 288FA3B0962 for ; Tue, 5 Oct 2004 12:44:43 -0400 (EDT) Received: (qmail 17059 invoked by uid 65534); 5 Oct 2004 16:44:42 -0000 Received: from xdsl-213-196-245-149.netcologne.de (EHLO klangraum) (213.196.245.149) by mail.gmx.net (mp003) with SMTP; 05 Oct 2004 18:44:42 +0200 X-Authenticated: #163624 Date: Tue, 5 Oct 2004 18:44:41 +0200 From: "A. Pagaltzis" To: gtk-perl-list@gnome.org Message-ID: <20041005164441.GA19159@klangraum> Mail-Followup-To: gtk-perl-list@gnome.org References: <20041005145130.GB29233@lenio.net> <20041005150656.GA18680@klangraum> <20041005152258.GA29465@lenio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041005152258.GA29465@lenio.net> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: GUI-less app to capture key_press_events only X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 16:44:50 -0000 * Eric Lenio [2004-10-05 17:25]: > Actually the issue is related to the Curses.pm module: the > problem is that Curses does NOT trigger an event by pressing > the control (or shift or mod) key by itself. I fumbled my way > through building a very simple Gtk2 app which did recognize the > event. But that little test app had a Gtk window, and I want > to get away from having any window. Hmm.. Google Groups finds > Message-Id: > > You need to set the console in a mode in which it gives you key > codes and not ASCII characters. The ioctl is in , IIRC. > > There is also a program called "dumpkey" or "showkey" which > waits for key presses and displays the key codes. Its source > code might help you. The program was part of the "kbd" > package, I think. and > Message-ID: > > IMHO, a better route might be to use one of the libraries for > raw mode which already exist. :-) If you're using svgalib, `man > keyboard_init' is a good place to start. In the unlikely event > that you're needing to read such keys in text mode, you might > want to try my old `rawkey' library, which I think is at > ftp://metalab.unc.edu/pub/Linux/libs/ui/rawkey-0.21.tar.gz. > Most likely you'll want to use svgalib though. Regards, -- Aristotle "If you can't laugh at yourself, you don't take life seriously enough." From dkasak@nusconsulting.com.au Tue Oct 5 19:03:55 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6B6D73B13A0 for ; Tue, 5 Oct 2004 19:03:55 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23727-09 for ; Tue, 5 Oct 2004 19:03:54 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id AE0F83B0EA0 for ; Tue, 5 Oct 2004 19:03:52 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i95NDvVa023366 for ; Wed, 6 Oct 2004 09:13:58 +1000 Message-ID: <41632868.7040805@nusconsulting.com.au> Date: Wed, 06 Oct 2004 09:04:08 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040823) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org Content-Type: multipart/mixed; boundary="----------=_1097018038-8960-78" X-Canit-Stats-ID: 111109 - 32f710b0ea73 X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Gtk2::ComboBoxEntry: changing the model ... what happens to the selection? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 23:03:55 -0000 This is a multi-part message in MIME format... ------------=_1097018038-8960-78 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all. I have some code which updates a Gtk2::ComboBoxEntry's model depending on what is happening elsewhere on the form. I've noticed that if you have an item selected already, if you change the model and *then* get the ID that was selected, you will still get the previously selected item. eg: # Combo gets a model $widget->set_model($model); --- User selects an item --- # Combo gets *another* model $widget->set_model($model); --- # Get the ID of the currently selected item in Combo my $iter = $widget->get_active_iter; if (! $iter) { return 0; } my $selected_accountno = $widget->get_model->get($iter, 0); In the above example, I will get the ID that corresponds to the item the user selected. However if the model has changed, the item they selected is not valid any more ( which is why I changed the model ). Am I supposed to explicitly clear out the selection when I change the model? If I do, that's fine. I just would have thought it would make more sense for this to happen automatically when the model changes ( and perhaps also clearing out the Combo's child entry text as well ). Dan -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1097018038-8960-78 Content-Type: text/html; name="CANIT-VOTING-LINKS-111109-32f710b0ea73.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-111109-32f710b0ea73.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 111109

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1097018038-8960-78-- From jens@wilke.org Tue Oct 5 19:25:39 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 58F113B1337 for ; Tue, 5 Oct 2004 19:25:38 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24769-02 for ; Tue, 5 Oct 2004 19:25:35 -0400 (EDT) Received: from mail01.global-planets.de (www.globalplanets.net [62.75.136.58]) by menubar.gnome.org (Postfix) with ESMTP id D150D3B1060 for ; Tue, 5 Oct 2004 19:25:34 -0400 (EDT) Received: from router.home (td90918a3.pool.terralink.de [217.9.24.163]) by mail01.global-planets.de (Postfix) with ESMTP id 3B5C24400D for ; Wed, 6 Oct 2004 00:33:28 +0200 (CEST) Received: from hoevels.home ([192.168.1.10]) by router.home with esmtp (Cipher TLSv1:RC4-MD5:128) (Exim 3.35 #1 (Debian)) id 1CEyeL-0007er-00 for ; Wed, 06 Oct 2004 01:23:17 +0200 From: Jens Wilke To: gtk-perl-list@gnome.org Date: Wed, 6 Oct 2004 01:25:28 +0200 User-Agent: KMail/1.6.2 References: <41632868.7040805@nusconsulting.com.au> In-Reply-To: <41632868.7040805@nusconsulting.com.au> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200410060125.28738.jens@wilke.org> X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Gtk2::ComboBoxEntry: changing the model ... what happens to the selection? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 23:25:40 -0000 On Mittwoch, 6. Oktober 2004 01:04, Daniel Kasak wrote: > $widget->set_model($model); > $widget->set_model($model); I suppose, you should not set models twice, but change the model: http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/TreeModel.html#SYNOPSIS Rgds, Jens From scott@asofyet.org Wed Oct 6 00:07:50 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 81AB43B0EDD for ; Wed, 6 Oct 2004 00:07:50 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02561-09 for ; Wed, 6 Oct 2004 00:07:49 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id D48503B0E13 for ; Wed, 6 Oct 2004 00:07:48 -0400 (EDT) Received: from [192.168.0.100] (adsl-1116.mis.net [12.162.183.102]) by pippin.dreamhost.com (Postfix) with ESMTP id A962316D207; Tue, 5 Oct 2004 21:07:47 -0700 (PDT) In-Reply-To: <20041005152258.GA29465@lenio.net> References: <20041005145130.GB29233@lenio.net> <20041005150656.GA18680@klangraum> <20041005152258.GA29465@lenio.net> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <47E9CF34-174D-11D9-98D0-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Wed, 6 Oct 2004 00:07:47 -0400 To: Eric Lenio X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: GUI-less app to capture key_press_events only X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 04:07:50 -0000 On Oct 5, 2004, at 11:22 AM, Eric Lenio wrote: > Actually the issue is related to the Curses.pm module: the problem is > that > Curses does NOT trigger an event by pressing the control (or shift or > mod) key > by itself. I fumbled my way through building a very simple Gtk2 app > which did > recognize the event. But that little test app had a Gtk window, and I > want to > get away from having any window. X applications cannot receive events unless they have an X window, because it is the X window that receives the event. the gtk+ equivalent is a GdkWindow (the GdkWindow is an abstraction for a windowing system's lowlevel window object, and is an X window in the X11 target). getting keyboard events also requires keyboard focus, so using a hidden window will be tricky magic at best. so, if you're wanting to capture the Ctrl key in a terminal app, Gtk2 will not help you at all. -- Walk softly, and carry a BFG-9000. -- unknown From scott@asofyet.org Wed Oct 6 00:28:25 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A21893B146A for ; Wed, 6 Oct 2004 00:28:24 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03478-02 for ; Wed, 6 Oct 2004 00:28:22 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id 07F4C3B0013 for ; Wed, 6 Oct 2004 00:28:22 -0400 (EDT) Received: from [192.168.0.100] (adsl-1116.mis.net [12.162.183.102]) by pippin.dreamhost.com (Postfix) with ESMTP id 2580416D203; Tue, 5 Oct 2004 21:28:12 -0700 (PDT) In-Reply-To: <41632868.7040805@nusconsulting.com.au> References: <41632868.7040805@nusconsulting.com.au> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <21870600-1750-11D9-98D0-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Wed, 6 Oct 2004 00:28:11 -0400 To: Daniel Kasak X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: Gtk2::ComboBoxEntry: changing the model ... what happens to the selection? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 04:28:25 -0000 On Oct 5, 2004, at 7:04 PM, Daniel Kasak wrote: > Am I supposed to explicitly clear out the selection when I change the > model? > If I do, that's fine. I just would have thought it would make more > sense for this to happen automatically when the model changes ( and > perhaps also clearing out the Combo's child entry text as well ). that smells like a question for gtk-list, or possibly bugzilla if you think it's a bug. (they will mark it not-a-bug if it's behaving as designed.) -- muppet From bulb@ucw.cz Wed Oct 6 03:25:55 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 44C6E3B000D for ; Wed, 6 Oct 2004 03:25:55 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09643-02 for ; Wed, 6 Oct 2004 03:25:53 -0400 (EDT) Received: from vagabond.light.src (cimice4.lam.cz [212.71.168.94]) by menubar.gnome.org (Postfix) with ESMTP id 7F1DB3B0AD7 for ; Wed, 6 Oct 2004 03:25:41 -0400 (EDT) Received: from bulb by vagabond.light.src with local (Exim 3.36 #1 (Debian)) id 1CF6Aw-0008CA-00; Wed, 06 Oct 2004 09:25:26 +0200 Date: Wed, 6 Oct 2004 09:25:26 +0200 From: Jan Hudec To: muppet Message-ID: <20041006072526.GD20407@vagabond> References: <20041005145130.GB29233@lenio.net> <20041005150656.GA18680@klangraum> <20041005152258.GA29465@lenio.net> <47E9CF34-174D-11D9-98D0-000A9580E5E0@asofyet.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UoPmpPX/dBe4BELn" Content-Disposition: inline In-Reply-To: <47E9CF34-174D-11D9-98D0-000A9580E5E0@asofyet.org> User-Agent: Mutt/1.5.6+20040907i Sender: Jan Hudec X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: GUI-less app to capture key_press_events only X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 07:25:55 -0000 --UoPmpPX/dBe4BELn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 06, 2004 at 00:07:47 -0400, muppet wrote: >=20 > On Oct 5, 2004, at 11:22 AM, Eric Lenio wrote: >=20 > >Actually the issue is related to the Curses.pm module: the problem is=20 > >that > >Curses does NOT trigger an event by pressing the control (or shift or=20 > >mod) key > >by itself. I fumbled my way through building a very simple Gtk2 app=20 > >which did > >recognize the event. But that little test app had a Gtk window, and I= =20 > >want to > >get away from having any window. >=20 > X applications cannot receive events unless they have an X window,=20 > because it is the X window that receives the event. the gtk+=20 > equivalent is a GdkWindow (the GdkWindow is an abstraction for a=20 > windowing system's lowlevel window object, and is an X window in the=20 > X11 target). getting keyboard events also requires keyboard focus, so=20 > using a hidden window will be tricky magic at best. It is not true, actualy. Any application may capture events on any window. That is particularly true for the root window. And since all other windows are BELOW the root window, each keypress can be captured on the root window. After all, that's exactly how the window manager keybindings work. > so, if you're wanting to capture the Ctrl key in a terminal app, Gtk2=20 > will not help you at all. Gtk2 won't. I am not sure how much Gdk would, though. Anyway, the Gnome Panel installs global keybindings. You can have a look at how it does that (As far as I recall, it used a key grab, but I am not sure whether it was a gdk call or a direct X call). ---------------------------------------------------------------------------= ---- Jan 'Bulb' Hudec --UoPmpPX/dBe4BELn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBY53lRel1vVwhjGURAskaAJ4owPiNXSPzBpKrWiALdycCS8QP/wCfQMlc E88RyvXUH2tgBfMM+HnAmSA= =LNGK -----END PGP SIGNATURE----- --UoPmpPX/dBe4BELn-- From cjnygard@fast.net Fri Oct 8 18:47:17 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 29B343B0782 for ; Fri, 8 Oct 2004 18:47:17 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31575-02 for ; Fri, 8 Oct 2004 18:47:14 -0400 (EDT) Received: from newmx2.fast.net (newmx2.fast.net [209.92.1.32]) by menubar.gnome.org (Postfix) with SMTP id 8DB0D3B0D6C for ; Fri, 8 Oct 2004 18:47:14 -0400 (EDT) Received: (qmail 23840 invoked from network); 8 Oct 2004 22:46:23 -0000 Received: from unknown (HELO ?192.168.0.70?) ([209.60.97.47]) (envelope-sender ) by newmx2.fast.net (qmail-ldap-1.03) with SMTP for ; 8 Oct 2004 22:46:23 -0000 From: Carl Nygard To: gtk-perl-list@gnome.org Content-Type: text/plain Message-Id: <1097275521.20553.175.camel@traveler> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Fri, 08 Oct 2004 18:45:21 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Gtk2::Ex::TieBind and ::Simple::OptionMenu released X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2004 22:47:17 -0000 Hi all, I know I promised some actual code a while ago. We (I) have finally gotten everything tied up, and the packages have been made available at: http://www.3sinc.com/opensource/index.html Any comments, feedback, patches, whatever will be appreciated. In a week or two (barring any problems) I'll put the packages up on CPAN. Regards, Carl From david.whitmarsh@sparkle-cc.co.uk Sat Oct 9 06:37:24 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 07C3E3B09CF for ; Sat, 9 Oct 2004 06:37:24 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16324-01 for ; Sat, 9 Oct 2004 06:37:21 -0400 (EDT) Received: from springfield.sparkle-cc.co.uk (mailgate.sparkle-cc.co.uk [80.176.161.114]) by menubar.gnome.org (Postfix) with ESMTP id 289FA3B0A1A for ; Sat, 9 Oct 2004 06:37:21 -0400 (EDT) Received: from [192.168.0.10] (marge.sparkle.local [192.168.0.10]) by springfield.sparkle-cc.co.uk (8.12.11/8.12.11) with ESMTP id i99AaDcX023741 for ; Sat, 9 Oct 2004 11:36:14 +0100 From: David Whitmarsh To: gtk-perl-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-UAUmryhaKEkgsleS5D//" Organization: Sparkle Computer Co Ltd Message-Id: <1097318175.22180.744.camel@marge.sparkle.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sat, 09 Oct 2004 11:36:16 +0100 X-Virus-Scanned: by amavisd-new at gnome.org Subject: Identifying when user clicks on a row in GtkTreeView X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 10:37:24 -0000 --=-UAUmryhaKEkgsleS5D// Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'm a relative newcomer to this so please forgive me if this is an obvious question but I've done a little research and tinkered with Glade and it isn't obvious to me. I have a window with a GtkTreeView and some text boxes. I would like to populate the text boxes from the ListModel behind the GtkTreeView, updating the boxes whenever the user selects another row. My first problem is that I can't find a signal that's fired whenever the user clicks on the GtkTreeView - double clicks, yes, that's activate_row. Is there such a signal, or another way of accomplishing my objective? Thanks, David --=-UAUmryhaKEkgsleS5D// Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBZ78dZJhH8oCzcr0RAif8AJ9HFgcMAvykUXiXVLayWEGMuSZ3kwCfX2o1 UEMlH/aFMVRM3KF3w4mBLHY= =FLkm -----END PGP SIGNATURE----- --=-UAUmryhaKEkgsleS5D//-- From mid@gtmp.org Sat Oct 9 06:43:21 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1EACF3B0D69 for ; Sat, 9 Oct 2004 06:43:21 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16586-05 for ; Sat, 9 Oct 2004 06:43:18 -0400 (EDT) Received: from smtp.gtmp.org (gtmp.org [81.56.55.112]) by menubar.gnome.org (Postfix) with ESMTP id 410B33B098B for ; Sat, 9 Oct 2004 06:43:18 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by smtp.gtmp.org (Postfix) with ESMTP id 5AD5980C2 for ; Sat, 9 Oct 2004 12:42:39 +0200 (CEST) Received: from smtp.gtmp.org ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22148-08 for ; Sat, 9 Oct 2004 12:42:38 +0200 (CEST) Received: from [192.168.0.10] (geri [192.168.0.10]) by smtp.gtmp.org (Postfix) with ESMTP id 1E6C17D84 for ; Sat, 9 Oct 2004 12:42:38 +0200 (CEST) Message-ID: <4167C0AB.5030906@gtmp.org> Date: Sat, 09 Oct 2004 12:42:51 +0200 From: Alexandre Jousset User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040804 X-Accept-Language: fr, en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org References: <1097318175.22180.744.camel@marge.sparkle.local> In-Reply-To: <1097318175.22180.744.camel@marge.sparkle.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gtmp.org X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Identifying when user clicks on a row in GtkTreeView X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 10:43:21 -0000 Hello, David Whitmarsh wrote: > I'm a relative newcomer to this so please forgive me if this is an > obvious question but I've done a little research and tinkered with Glade > and it isn't obvious to me. > > I have a window with a GtkTreeView and some text boxes. I would like to > populate the text boxes from the ListModel behind the GtkTreeView, > updating the boxes whenever the user selects another row. My first > problem is that I can't find a signal that's fired whenever the user > clicks on the GtkTreeView - double clicks, yes, that's activate_row. Is > there such a signal, or another way of accomplishing my objective? Yes. You can get the selection with $tree_view->get_selection and then connect the signal 'changed' of the selection. In the callback you can get the selection and know the row in question. Regards, -- \^/ -/ O \---------------------------------------- | |/ \| Alexandre (Midnite) Jousset | -|___|---------------------------------------- From kbg-octoz@tiscali.fr Sat Oct 9 08:49:52 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B8DE93B0883 for ; Sat, 9 Oct 2004 08:49:52 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20847-09 for ; Sat, 9 Oct 2004 08:49:34 -0400 (EDT) Received: from mail.libertysurf.net (mx-out.tiscali.fr [213.36.80.91]) by menubar.gnome.org (Postfix) with ESMTP id 9C1D83B0666 for ; Sat, 9 Oct 2004 08:49:34 -0400 (EDT) Received: from [212.83.145.194] (212.83.145.194) by mail.libertysurf.net (6.5.036) id 4167682D000CA96D for gtk-perl-list@gnome.org; Sat, 9 Oct 2004 14:48:10 +0200 From: kbg To: gtk-perl-list@gnome.org Content-Type: text/plain Message-Id: <1097326195.9415.13.camel@linux> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 09 Oct 2004 14:49:56 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Treeview, Treeselection and row selection X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 12:49:52 -0000 Hello all If got a problem with this programm my @language = ('Francais','English'); my $store = Gtk2::ListStore->new ('Glib::String'); foreach my $d (@language) { my $iter = $store->append; $store->set ($iter,0, $d); } my $list = Gtk2::TreeView->new_with_model($store); my $selection = $list->get_selection; $selection->set_mode ('single'); my $selected = $selection->get_selected; my $renderer = Gtk2::CellRendererText->new; my $column = Gtk2::TreeViewColumn->new_with_attributes (Translate::TranslateWord('Language',$lang),$renderer,text => 0); $column->set_sort_column_id (0); $list->append_column ($column); return ($list,$selected); I want that "$selected" takes the value of the selected row ('Francais' or 'English') so i try with "get_selected" from TreeSelection but it doesn t work, "$selected" is empty I ve read all the pod and documentation i ve find but nothing to do....Can someone help me? From kaffeetisch@gmx.de Sat Oct 9 10:21:29 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1CEE13B0817 for ; Sat, 9 Oct 2004 10:21:29 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23566-03 for ; Sat, 9 Oct 2004 10:21:26 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 0D5B83B0704 for ; Sat, 9 Oct 2004 10:21:26 -0400 (EDT) Received: (qmail 10092 invoked by uid 65534); 9 Oct 2004 14:20:11 -0000 Received: from pD9569809.dip.t-dialin.net (EHLO router.dialin.t-online.de) (217.86.152.9) by mail.gmx.net (mp005) with SMTP; 09 Oct 2004 16:20:11 +0200 X-Authenticated: #2092818 From: Torsten Schoenfeld To: gtk-perl-list@gnome.org In-Reply-To: <51419b2c04100409082876d316@mail.gmail.com> References: <20041004151317.GC557@fqdn.org> <41616A2C.9010501@idm.fr> <20041004154949.GA13213@fqdn.org> <51419b2c04100409082876d316@mail.gmail.com> Content-Type: text/plain Message-Id: <1097331611.1638.12.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 09 Oct 2004 16:20:11 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: How to have a window stay always on top? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 14:21:29 -0000 On Mon, 2004-10-04 at 18:08, Elijah Newren wrote: > > > Just set it as a MENU window, it'll be always on top. when creating a > > > window, you can pass argument to the new() method. Check the doc > > > > It seems that Gtk::Window->new only supports window types 'toplevel', > > 'dialog' and 'popup'. The 'popup' type will stay on top, but it has > > no decoration and can not be moved. This is not what i'm searching > > for. > > You could set the window type to DOCK. This won't give decorations, > but it does allow moving and make the window be on top. I believe > that there is not gtk+ function to do this (and thus probably no > gtk2-perl function), so it would depend on whether there's perl > bindings to Xlib. gnome-panel provides a good example of how to do > this in C (see the xstuff_set_wmspec_dock_hints function in > gnome-panel/gnome-panel/xstuff.c), and if there are perl bindings to > Xlib (in particular for XChangeProperty), then this example should be > fairly easy to translate to perl. There's the GdkProperty stuff though, which we do wrap. Gtk2/t/GdkProperty.t has example usage. PerlPanel for example uses it to make itself a strut that is not covered by maximized windows. -- Bye, -Torsten From kaffeetisch@gmx.de Sat Oct 9 10:23:37 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 831FE3B0CC7 for ; Sat, 9 Oct 2004 10:23:37 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23703-01 for ; Sat, 9 Oct 2004 10:23:36 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id BBC3C3B0704 for ; Sat, 9 Oct 2004 10:23:35 -0400 (EDT) Received: (qmail 22846 invoked by uid 65534); 9 Oct 2004 14:22:42 -0000 Received: from pD9569809.dip.t-dialin.net (EHLO router.dialin.t-online.de) (217.86.152.9) by mail.gmx.net (mp005) with SMTP; 09 Oct 2004 16:22:42 +0200 X-Authenticated: #2092818 From: Torsten Schoenfeld To: gtk-perl-list@gnome.org In-Reply-To: <1097326195.9415.13.camel@linux> References: <1097326195.9415.13.camel@linux> Content-Type: text/plain Message-Id: <1097331761.1605.15.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 09 Oct 2004 16:22:41 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Treeview, Treeselection and row selection X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 14:23:37 -0000 On Sat, 2004-10-09 at 14:49, kbg wrote: > I want that "$selected" takes the value of the selected row ('Francais' > or 'English') so i try with "get_selected" from TreeSelection but it > doesn t work, "$selected" is empty The user had no chance to select a row since you just created the list, and you didn't manually select anything either, so there just is no selection yet. You could connect to the "changed" signal of the selection object, or just call get_selected() later, when the user has had a chance to select something. -- Bye, -Torsten From kbg-octoz@tiscali.fr Sun Oct 10 04:07:17 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 098E93B08E0 for ; Sun, 10 Oct 2004 04:07:17 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21097-01 for ; Sun, 10 Oct 2004 04:07:15 -0400 (EDT) Received: from mail.libertysurf.net (mx-out.tiscali.fr [213.36.80.91]) by menubar.gnome.org (Postfix) with ESMTP id 869B23B0D96 for ; Sun, 10 Oct 2004 04:07:15 -0400 (EDT) Received: from [212.83.145.144] (212.83.145.144) by mail.libertysurf.net (6.5.036) id 4168BD0900046140 for gtk-perl-list@gnome.org; Sun, 10 Oct 2004 10:06:26 +0200 From: kbg To: gtk-perl-list@gnome.org Content-Type: text/plain Message-Id: <1097395707.7457.6.camel@linux> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 10 Oct 2004 10:08:27 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Textview X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 08:07:17 -0000 hi all i ve got a problem with this par of a programm my $textview = new Gtk2::TextView; $textview->set (editable => FALSE); open ('TEST',"<./text/test.txt"); if (! open ('TEST',"<./text/test.txt")) { print "Error\n"; } my @text = ; close 'TEST'; my $scrolledwindow = Gtk2::ScrolledWindow->new( undef , undef ); $scrolledwindow->set_policy( 'never' , 'automatic' ); $table->attach_defaults( $scrolledwindow , 1 , 7 , 3 , 18 ) ; $textview->show; $scrolledwindow->add_with_viewport ( $textview ); $scrolledwindow->show(); I didn't manage to find the command to show the whole "test.txt" file in the textview. Can someone help for this. Thanx :) From ofey_aikon@yahoo.com Sun Oct 10 04:22:28 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8EAD43B0EB3 for ; Sun, 10 Oct 2004 04:22:28 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22784-01 for ; Sun, 10 Oct 2004 04:22:26 -0400 (EDT) Received: from web60207.mail.yahoo.com (web60207.mail.yahoo.com [216.109.118.102]) by menubar.gnome.org (Postfix) with SMTP id 0B3D33B0E1C for ; Sun, 10 Oct 2004 04:22:26 -0400 (EDT) Message-ID: <20041010082138.65202.qmail@web60207.mail.yahoo.com> Received: from [69.154.77.181] by web60207.mail.yahoo.com via HTTP; Sun, 10 Oct 2004 01:21:38 PDT Date: Sun, 10 Oct 2004 01:21:38 -0700 (PDT) From: ofey aikon To: Alexandre Jousset , gtk-perl-list@gnome.org In-Reply-To: <4167C0AB.5030906@gtmp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org Cc: Subject: Re: Identifying when user clicks on a row in GtkTreeView X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 08:22:28 -0000 > > I have a window with a GtkTreeView and some text boxes. I would like to > > populate the text boxes from the ListModel behind the GtkTreeView, > > updating the boxes whenever the user selects another row. My first > > problem is that I can't find a signal that's fired whenever the user > > clicks on the GtkTreeView - double clicks, yes, that's activate_row. Is > > there such a signal, or another way of accomplishing my objective? > > Yes. You can get the selection with $tree_view->get_selection and then > connect the signal 'changed' of the selection. In the callback you can > get the selection and know the row in question. May be this code will be of use to you. Click on any row in the treeview and you should see that entry in the label. Thanks, _Ofey. --------------------------------------------------- use strict; use warnings; use Gtk2 -init; use constant TRUE => 1; use constant FALSE => !TRUE; # create a list that contains your data my @list; push @list, { text => "coke" }, { text => "pepsi" }, { text => "fanta" }, { text => "sprite" }, { text => "mountain dew" }; # create a liststore using that list my $model = Gtk2::ListStore->new (qw/Glib::String/); foreach my $a (@list) { my $iter = $model->append; $model->set ($iter, 0, $a->{text}); } # Create a label where your current selection will be printed out my $label = Gtk2::Label->new; # Create a treeview to display the list that we created my $treeview = Gtk2::TreeView->new_with_model ($model); my $renderer = Gtk2::CellRendererText->new; $renderer->set_data (column => 0); $treeview->insert_column_with_attributes (-1, "Drinks", $renderer, text => 0); # Here is the logic that you are looking for. # This gets triggered when the user selects a row. $treeview->get_selection->signal_connect('changed' => sub { my ($selection) = @_; my $iter = $selection->get_selected; if ($iter) { my $path = $model->get_path ($iter); my $i = ($path->get_indices)[0]; my $x = $list[$i]; # Set the label text equal to the selection $label->set_label($x->{text}); } } ); # Add the treeview to a scrolledwindow for fun my $scroll = Gtk2::ScrolledWindow->new; $scroll->add($treeview); # I just chose a vpaned to contain both widgets. You can choose anything ! my $vpaned = Gtk2::VPaned->new; $vpaned->add1($label); $vpaned->add2($scroll); my $window = Gtk2::Window->new; $window->signal_connect(destroy => sub { Gtk2->main_quit; }); $window->add($vpaned); $window->set_default_size (320, 200); $window->show_all; Gtk2->main; __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From ofey_aikon@yahoo.com Sun Oct 10 04:41:30 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 07C953B0808 for ; Sun, 10 Oct 2004 04:41:30 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28845-05 for ; Sun, 10 Oct 2004 04:41:28 -0400 (EDT) Received: from web60205.mail.yahoo.com (web60205.mail.yahoo.com [216.109.118.100]) by menubar.gnome.org (Postfix) with SMTP id B65A33B06F9 for ; Sun, 10 Oct 2004 04:41:27 -0400 (EDT) Message-ID: <20041010084053.37932.qmail@web60205.mail.yahoo.com> Received: from [69.154.77.181] by web60205.mail.yahoo.com via HTTP; Sun, 10 Oct 2004 01:40:53 PDT Date: Sun, 10 Oct 2004 01:40:53 -0700 (PDT) From: ofey aikon To: kbg , gtk-perl-list@gnome.org In-Reply-To: <1097395707.7457.6.camel@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org Cc: Subject: Re: Textview X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 08:41:30 -0000 > I didn't manage to find the command to show the whole "test.txt" file in > the textview. Can someone help for this. Thanx :) I am not sure if I understand what you are looking for !! But, the following code will display the contents of a text file using the Gtk2::TextView. Thanks, _Ofey. ------------------------------------------ use strict; use warnings; use Gtk2 -init; # Copy the entire file into a string (str) my $str; open (TEST,"< test.txt") or die "Cannot open test.txt\n"; while() { $str .= $_; } close TEST; # Create a textbuffer to contain that string my $textbuffer = Gtk2::TextBuffer->new(); $textbuffer->set_text($str); # Create a textview using that textbuffer my $textview = Gtk2::TextView->new_with_buffer($textbuffer); # Add the textview to a scrolledwindow my $scrolledwindow = Gtk2::ScrolledWindow->new( undef , undef ); $scrolledwindow->add($textview); # And finally add that scrolledwindow to a window my $window = Gtk2::Window->new; $window->signal_connect(destroy => sub { Gtk2->main_quit; }); $window->add($scrolledwindow); $window->set_default_size (500, 400); $window->show_all; Gtk2->main; _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From mj+gnome@ml.m-j-s.net Sun Oct 10 05:59:16 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CF6C63B07DA for ; Sun, 10 Oct 2004 05:59:15 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30335-05 for ; Sun, 10 Oct 2004 05:59:13 -0400 (EDT) Received: from morannon.fido.de (morannon.fido.de [213.61.255.225]) by menubar.gnome.org (Postfix) with ESMTP id 9B77E3B0981 for ; Sun, 10 Oct 2004 05:59:11 -0400 (EDT) Received: from [84.135.103.28] (p5487671C.dip.t-dialin.net [84.135.103.28]) (authenticated bits=0) by morannon.fido.de (8.12.8/8.12.8/redhat9-morannon-1.1a) with ESMTP id i9A9twXZ015551 for ; Sun, 10 Oct 2004 11:55:59 +0200 Message-ID: <416907D2.7070803@ml.m-j-s.net> Date: Sun, 10 Oct 2004 11:58:42 +0200 From: Martin Junius User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Setting widget background during widget creation? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 09:59:16 -0000 Hi all! Is there an easy way to set a widget's background during widget creation, ie before the widget is realized? From what I understand the background can be changed with $widget->get_style->set_background($win, $state) but this requires $win which is not yet available during widget creation. Any hints? Regards, Martin From mj+gnome@ml.m-j-s.net Sun Oct 10 06:04:35 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 406853B0981 for ; Sun, 10 Oct 2004 06:04:35 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30499-09 for ; Sun, 10 Oct 2004 06:04:33 -0400 (EDT) Received: from morannon.fido.de (morannon.fido.de [213.61.255.225]) by menubar.gnome.org (Postfix) with ESMTP id 231E23B0698 for ; Sun, 10 Oct 2004 06:04:33 -0400 (EDT) Received: from [84.135.103.28] (p5487671C.dip.t-dialin.net [84.135.103.28]) (authenticated bits=0) by morannon.fido.de (8.12.8/8.12.8/redhat9-morannon-1.1a) with ESMTP id i9AA1RXZ015706 for ; Sun, 10 Oct 2004 12:01:27 +0200 Message-ID: <4169091A.2020900@ml.m-j-s.net> Date: Sun, 10 Oct 2004 12:04:10 +0200 From: Martin Junius User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: TextView row highlighting and focus X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 10:04:35 -0000 Hi all! When a row in a TextView is selected, it is highlighted according to the style. But when the widget loses focus, it is no longer highlighted. With the old CTree widget the highlighted row would stay. Is there any way (except $widget->grab_focus)? In addition, when I move the selection with $widget->get_selection->select_iter($iter) then the row originally selected with the mouse stays highlighted with a thin frame. Any way to get rid of this? Regards, Martin From pagaltzis@gmx.de Sun Oct 10 07:29:41 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2D0BC3B0004 for ; Sun, 10 Oct 2004 07:29:41 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00730-02 for ; Sun, 10 Oct 2004 07:29:38 -0400 (EDT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 10CC13B0003 for ; Sun, 10 Oct 2004 07:29:38 -0400 (EDT) Received: (qmail 9194 invoked by uid 65534); 10 Oct 2004 11:29:29 -0000 Received: from xdsl-213-196-244-15.netcologne.de (EHLO klangraum) (213.196.244.15) by mail.gmx.net (mp025) with SMTP; 10 Oct 2004 13:29:29 +0200 X-Authenticated: #163624 Date: Sun, 10 Oct 2004 13:29:28 +0200 From: "A. Pagaltzis" To: gtk-perl-list@gnome.org Message-ID: <20041010112928.GA19024@klangraum> Mail-Followup-To: gtk-perl-list@gnome.org References: <4169091A.2020900@ml.m-j-s.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4169091A.2020900@ml.m-j-s.net> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: TextView row highlighting and focus X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 11:29:41 -0000 * Martin Junius [2004-10-10 12:05]: > When a row in a TextView is selected, it is highlighted > according to the style. But when the widget loses focus, it is > no longer highlighted. I don't know about you, but for me it stays highlighted -- just in a different colour that indicates that it doesn't have focus. > In addition, when I move the selection with > $widget->get_selection->select_iter($iter) then the row > originally selected with the mouse stays highlighted with a > thin frame. Any way to get rid of this? That's the cursor for the keyboard navigation. Have a look at the (set|get)_cursor* methods. Regards, -- Aristotle "Like punning, programming is a play on words." -- Alan J. Perlis, "Epigrams in Programming" From scott@asofyet.org Sun Oct 10 11:32:59 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3D4B63B0696 for ; Sun, 10 Oct 2004 11:32:59 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10109-05 for ; Sun, 10 Oct 2004 11:32:57 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id 363FE3B0EA7 for ; Sun, 10 Oct 2004 11:31:24 -0400 (EDT) Received: from [192.168.0.100] (adsl-1116.mis.net [12.162.183.102]) by pippin.dreamhost.com (Postfix) with ESMTP id DA1B716D209; Sun, 10 Oct 2004 08:30:56 -0700 (PDT) In-Reply-To: <416907D2.7070803@ml.m-j-s.net> References: <416907D2.7070803@ml.m-j-s.net> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <60D74E26-1AD1-11D9-872B-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Sun, 10 Oct 2004 11:30:55 -0400 To: Martin Junius X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: Setting widget background during widget creation? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 15:32:59 -0000 On Oct 10, 2004, at 5:58 AM, Martin Junius wrote: > Is there an easy way to set a widget's background during widget > creation, ie before the widget is realized? what kind of background -- a color or a pixmap? if you want to set a pixmap, there's no escaping the requirement that the widget be realized, because you have to have the GdkWindow in order to get the correct depth and screen for the pixmap. you can force the widget to realize by calling $widget->realize before calling ->show. if you just want to set a color, then you can use $style->modify_bg(). http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget- modify-bg -- Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we. -- President George W. Bush From mj+gnome@ml.m-j-s.net Sun Oct 10 14:11:36 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 048753B0B63 for ; Sun, 10 Oct 2004 14:11:36 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16860-04 for ; Sun, 10 Oct 2004 14:11:33 -0400 (EDT) Received: from morannon.fido.de (morannon.fido.de [213.61.255.225]) by menubar.gnome.org (Postfix) with ESMTP id 181D83B0A8C for ; Sun, 10 Oct 2004 14:11:33 -0400 (EDT) Received: from [84.135.103.28] (p5487671C.dip.t-dialin.net [84.135.103.28]) (authenticated bits=0) by morannon.fido.de (8.12.8/8.12.8/redhat9-morannon-1.1a) with ESMTP id i9AI7aXZ024585 for ; Sun, 10 Oct 2004 20:07:53 +0200 Message-ID: <41697B05.1060702@ml.m-j-s.net> Date: Sun, 10 Oct 2004 20:10:13 +0200 From: Martin Junius User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org References: <4169091A.2020900@ml.m-j-s.net> <20041010112928.GA19024@klangraum> In-Reply-To: <20041010112928.GA19024@klangraum> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: TextView row highlighting and focus X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 18:11:36 -0000 A. Pagaltzis wrote: > That's the cursor for the keyboard navigation. Have a look at the > (set|get)_cursor* methods. Thanks, that's exactly what was needed. I'm now using $tree->get_selection->select_iter($iter); $tree->set_cursor($model->get_path($iter)); Regards, Martin From hostmaster@grawert.net Mon Oct 11 11:32:56 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 912D93B14B7 for ; Mon, 11 Oct 2004 11:32:56 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32358-03 for ; Mon, 11 Oct 2004 11:32:54 -0400 (EDT) Received: from mail.kddmz.de (mail.kddmz.de [195.243.192.66]) by menubar.gnome.org (Postfix) with ESMTP id 35AC13B1225 for ; Mon, 11 Oct 2004 11:32:51 -0400 (EDT) Received: from [172.25.21.22] by mail.kddmz.de with ESMTP for gtk-perl-list@gnome.org; Mon, 11 Oct 2004 11:30:34 +0200 Received: from [172.25.50.88] (WAH05096.knrw.de [172.25.50.88]) by uah01.knrw.de with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 4VGSF111; Mon, 11 Oct 2004 11:30:33 +0200 From: Oliver Grawert To: gtk-perl-list@gnome.org Content-Type: text/plain Date: Mon, 11 Oct 2004 11:36:21 +0200 Message-Id: <1097487381.9902.18.camel@testus> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: logical barred ? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 15:32:56 -0000 hi, could someone give me a hint why the following code doesn't work: ----snip---- push(@tmp, (shift(@tmp)." => 'text'")) foreach(@tmp); my $listview = Gtk2::SimpleList->new(@tmp); ----snap---- @tmp is populated with the column names from a database query. maybe i'm on the totally wrong path. how am i supposed to use Gtk2::SimpleList with headers changing dynamically on each request ? the help of a more enlightened person would be fine.... ciao oli -- got ubuntu ? --------------> GET UBUNTU !!! http://www.ubuntulinux.org/ From rgarciasuarez@gmail.com Mon Oct 11 11:45:51 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC2413B1071 for ; Mon, 11 Oct 2004 11:45:48 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00714-08 for ; Mon, 11 Oct 2004 11:45:44 -0400 (EDT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.193]) by menubar.gnome.org (Postfix) with ESMTP id 99AD03B136A for ; Mon, 11 Oct 2004 11:44:44 -0400 (EDT) Received: by mproxy.gmail.com with SMTP id 75so419968rnl for ; Mon, 11 Oct 2004 08:44:22 -0700 (PDT) Received: by 10.38.152.68 with SMTP id z68mr1357767rnd; Mon, 11 Oct 2004 08:44:22 -0700 (PDT) Received: by 10.38.72.55 with HTTP; Mon, 11 Oct 2004 08:44:22 -0700 (PDT) Message-ID: Date: Mon, 11 Oct 2004 17:44:22 +0200 From: Rafael Garcia-Suarez To: Oliver Grawert In-Reply-To: <1097487381.9902.18.camel@testus> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1097487381.9902.18.camel@testus> X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: logical barred ? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rafael Garcia-Suarez List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 15:45:51 -0000 On Mon, 11 Oct 2004 11:36:21 +0200, Oliver Grawert wrote: > hi, > > could someone give me a hint why the following code doesn't work: > > ----snip---- > push(@tmp, (shift(@tmp)." => 'text'")) foreach(@tmp); You shouldn't modify the array you're iterating on. From mid@gtmp.org Mon Oct 11 12:09:32 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 367913B11CA for ; Mon, 11 Oct 2004 12:09:32 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02589-07 for ; Mon, 11 Oct 2004 12:09:30 -0400 (EDT) Received: from mxis.promotrans.net (62-240-247-8.adsl.claranet.fr [62.240.247.8]) by menubar.gnome.org (Postfix) with ESMTP id 8F4893B0F2A for ; Mon, 11 Oct 2004 12:09:29 -0400 (EDT) Received: from [192.168.0.69] (unknown [192.168.0.69]) by mxis.promotrans.net (Postfix) with ESMTP id 0389B3EE0A for ; Mon, 11 Oct 2004 18:01:06 +0200 (CEST) Message-ID: <416AB022.30305@gtmp.org> Date: Mon, 11 Oct 2004 18:09:06 +0200 From: Alexandre Jousset User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org References: <1097487381.9902.18.camel@testus> In-Reply-To: <1097487381.9902.18.camel@testus> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: logical barred ? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 16:09:32 -0000 Hello, Oliver Grawert wrote: > could someone give me a hint why the following code doesn't work: > > ----snip---- > push(@tmp, (shift(@tmp)." => 'text'")) foreach(@tmp); > my $listview = Gtk2::SimpleList->new(@tmp); > ----snap---- > > @tmp is populated with the column names from a database query. maybe i'm > on the totally wrong path. how am i supposed to use Gtk2::SimpleList > with headers changing dynamically on each request ? > > the help of a more enlightened person would be fine.... First, what you do with @tmp is not very clear. I think you meant: push @tmp2, "$_ => 'text'" foreach @tmp; Second, you want to pass a list of strings to Gtk2::SimpleList->new(), that does not work. Instead, pass it twice more arguments, like this: ----snip---- push @tmp2, ($_, 'text') foreach @tmp; my $listview = Gtk2::SimpleList->new(@tmp2); ----snap---- and that should work. HTH, Alex. From rwmcfa1@neces.com Mon Oct 11 12:16:02 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 62FE63B0CBE for ; Mon, 11 Oct 2004 12:16:02 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02997-01 for ; Mon, 11 Oct 2004 12:16:00 -0400 (EDT) Received: from chococat.sd.dreamhost.com (chococat.sd.dreamhost.com [66.33.206.16]) by menubar.gnome.org (Postfix) with ESMTP id BB7E53B1339 for ; Mon, 11 Oct 2004 12:15:56 -0400 (EDT) Received: from webmail.neces.com (localhost [127.0.0.1]) by chococat.sd.dreamhost.com (Postfix) with SMTP id 7E323FA4A for ; Mon, 11 Oct 2004 09:15:36 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user rwmcfa1@neces.com) by webmail.neces.com with HTTP; Mon, 11 Oct 2004 12:15:36 -0400 (EDT) Message-ID: <51511.192.146.101.26.1097511336.spork@webmail.neces.com> In-Reply-To: <416AB022.30305@gtmp.org> References: <1097487381.9902.18.camel@testus> <416AB022.30305@gtmp.org> Date: Mon, 11 Oct 2004 12:15:36 -0400 (EDT) From: "Ross McFarland" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: logical barred ? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 16:16:02 -0000 Alexandre Jousset said: > ----snip---- > push @tmp2, ($_, 'text') foreach @tmp; > my $listview = Gtk2::SimpleList->new(@tmp2); > ----snap---- if you want to get a little fancier: my $listview = Gtk2::SimpleList->new ( map { $_ => 'text' } @tmp ); but don't forget that fancy can be a bad idea when you come back in a few months and can't remember what it's doing. -rm From hostmaster@grawert.net Mon Oct 11 13:29:28 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B4F03B0A8A for ; Mon, 11 Oct 2004 13:29:25 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06745-05 for ; Mon, 11 Oct 2004 13:29:22 -0400 (EDT) Received: from aleph.grawert.net (s217-115-139-139.colo.hosteurope.de [217.115.139.139]) by menubar.gnome.org (Postfix) with ESMTP id 644AF3B09A3 for ; Mon, 11 Oct 2004 13:28:46 -0400 (EDT) Received: from [80.142.161.170] (helo=192.168.0.10) by aleph.grawert.net with asmtp (Exim 3.35 #1 (Debian)) id 1CH3y9-0000Q8-00 for ; Mon, 11 Oct 2004 19:28:21 +0200 From: Oliver Grawert To: gtk-perl-list@gnome.org In-Reply-To: <51511.192.146.101.26.1097511336.spork@webmail.neces.com> References: <1097487381.9902.18.camel@testus> <416AB022.30305@gtmp.org> <51511.192.146.101.26.1097511336.spork@webmail.neces.com> Content-Type: text/plain Date: Mon, 11 Oct 2004 19:27:49 +0200 Message-Id: <1097515669.12144.9.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: logical barred ? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 17:29:28 -0000 hi, Am Montag, den 11.10.2004, 12:15 -0400 schrieb Ross McFarland: > if you want to get a little fancier: > > my $listview = Gtk2::SimpleList->new ( > map { $_ => 'text' } @tmp > ); > > but don't forget that fancy can be a bad idea when you come back in a few > months and can't remember what it's doing. thats what comments are for , aren't they ? *g* that did the trick, map was the missing bit, this should appear anywhere in the SimpleList doc, me thinks :) anyway, a big thanks to you all, now i can go on with my little app.... ciao oli ps: who's responsible for putting apps in the applist on gtk2-perl.sf.net, id like to have my apps added: http://www.grawert.net/software/evonotify/ and http://www.grawert.net/software/pimp/ -- got ubuntu ? --------------> GET UBUNTU !!! http://www.ubuntulinux.org/ From hostmaster@grawert.net Mon Oct 11 13:37:46 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C56A53B0BDB for ; Mon, 11 Oct 2004 13:37:46 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07394-03 for ; Mon, 11 Oct 2004 13:37:45 -0400 (EDT) Received: from aleph.grawert.net (s217-115-139-139.colo.hosteurope.de [217.115.139.139]) by menubar.gnome.org (Postfix) with ESMTP id C255D3B0B10 for ; Mon, 11 Oct 2004 13:37:45 -0400 (EDT) Received: from [80.142.161.170] (helo=192.168.0.10) by aleph.grawert.net with asmtp (Exim 3.35 #1 (Debian)) id 1CH46u-0000QW-00 for ; Mon, 11 Oct 2004 19:37:24 +0200 From: Oliver Grawert To: gtk-perl-list@gnome.org In-Reply-To: References: <1097487381.9902.18.camel@testus> Content-Type: text/plain Date: Mon, 11 Oct 2004 19:36:53 +0200 Message-Id: <1097516213.12144.15.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: logical barred ? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 17:37:46 -0000 hi, Am Montag, den 11.10.2004, 17:44 +0200 schrieb Rafael Garcia-Suarez: > On Mon, 11 Oct 2004 11:36:21 +0200, Oliver Grawert > wrote: > > hi, > > > > could someone give me a hint why the following code doesn't work: > > > > ----snip---- > > push(@tmp, (shift(@tmp)." => 'text'")) foreach(@tmp); > > You shouldn't modify the array you're iterating on. i think in this case it's only a prob if the array is empty, i'm just looping the elements through the array, but you are right, it's not essential beautiful :) ciao oli -- got ubuntu ? --------------> GET UBUNTU !!! http://www.ubuntulinux.org/ From rwmcfa1@neces.com Mon Oct 11 20:04:42 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C15D23B0D0F for ; Mon, 11 Oct 2004 20:04:42 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24970-06 for ; Mon, 11 Oct 2004 20:04:40 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id 711EF3B07BD for ; Mon, 11 Oct 2004 20:04:40 -0400 (EDT) Received: from [192.168.1.45] (unknown [12.222.230.66]) by smeagol.dreamhost.com (Postfix) with ESMTP id 76B6D2383B for ; Mon, 11 Oct 2004 17:04:39 -0700 (PDT) From: Ross McFarland To: Gtk-Perl-List Content-Type: text/plain Message-Id: <1097539477.23624.25.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 11 Oct 2004 20:04:37 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Gtk2-Ex X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 00:04:42 -0000 provided there are no objections i'm planning on creating a Gtk2-Ex top-level cvs module and importing the simple stuff i currently have into it. after that has been done i'll release a preliminary version and then go from there. this is the next generation of the Simple::(List|Tree|Menu) modules. opinions? -- -rm http://www.neces.com/ From dkasak@nusconsulting.com.au Mon Oct 11 21:53:36 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 531673B0C1B for ; Mon, 11 Oct 2004 21:53:36 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28532-02 for ; Mon, 11 Oct 2004 21:53:35 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id D69A33B0C30 for ; Mon, 11 Oct 2004 21:53:33 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9C24hVa023552 for ; Tue, 12 Oct 2004 12:04:49 +1000 Message-ID: <416B394F.8050505@nusconsulting.com.au> Date: Tue, 12 Oct 2004 11:54:23 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040823) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gtk-Perl-List Content-Type: multipart/mixed; boundary="----------=_1097546689-31913-19" X-Canit-Stats-ID: 114434 - 1ee1cf2521d8 X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Names in Glade XML files must be unique? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 01:53:36 -0000 This is a multi-part message in MIME format... ------------=_1097546689-31913-19 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all. I've just experienced some pretty weird behaviour when using Glade XML files. It seems that Gtk2::GladeXML's get_widget() will get hold of the *first* object if finds with the given name ( outside of it's "scope" ) instead of selecting the right one. For example, I have 2 windows. In Glade, they're called "MainMenu" and "Batches". In Perl, I create them: $mainmenu = Gtk2::GladeXML->new($gladefile, "MainMenu"); $mainmenu->signal_autoconnect_from_package; $batches = Gtk2::GladeXML->new($gladefile, "Batches"); $batches->signal_autoconnect_from_package; Now, my MainMenu form has a *button* on it, called "Batches" ... because it's the batches button, which opens the batches form. If I try to get hold of the "Batches" window, via: $batches->get_widget("Batches") I instead get the Batches *button*, on the MainMenu form. I realise I can get around this by using unique names ( eg calling the button btnBatches or something ), but still ... shouldn't the work? How is the $batches object getting hold of something on the $mainmenu object? Any plans to fix this behaviour? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1097546689-31913-19 Content-Type: text/html; name="CANIT-VOTING-LINKS-114434-1ee1cf2521d8.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-114434-1ee1cf2521d8.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 114434

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1097546689-31913-19-- From scott@asofyet.org Mon Oct 11 22:56:52 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0B8183B06E0 for ; Mon, 11 Oct 2004 22:56:52 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30721-04 for ; Mon, 11 Oct 2004 22:56:49 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id 8145F3B0A40 for ; Mon, 11 Oct 2004 22:56:49 -0400 (EDT) Received: from [192.168.0.102] (adsl-1116.mis.net [12.162.183.102]) by merry.dreamhost.com (Postfix) with ESMTP id BB63E17512C; Mon, 11 Oct 2004 19:56:47 -0700 (PDT) In-Reply-To: <416B394F.8050505@nusconsulting.com.au> References: <416B394F.8050505@nusconsulting.com.au> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5BBF18CC-1BFA-11D9-A9C2-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Mon, 11 Oct 2004 22:56:47 -0400 To: Daniel Kasak X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Names in Glade XML files must be unique? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 02:56:52 -0000 On Oct 11, 2004, at 9:54 PM, Daniel Kasak wrote: > I've just experienced some pretty weird behaviour when using Glade XML > files. > It seems that Gtk2::GladeXML's get_widget() will get hold of the > *first* object if finds with the given name ( outside of it's "scope" > ) instead of selecting the right one. i think it actually gets the last one listed in the glade file. Gtk2::GladeXML::get_widget() is a trivial binding for libglade's glade_xml_get_widget(), so whatever behavior you're seeing is coming from libglade, not the perl bindings. libglade uses a GHashTable to hold the mapping of widget names to widgets; duplicate names will hash to the same table entry, and therefore the last-created widget will be the one found in the hash. does the MainMenu form come before or after the Batches window in your xml file? > Any plans to fix this behaviour? nope; not our bug. ;-) -- Examples really shouldn't include unexploded ordnance. -- Joe Smith, referring to an example program i wrote. From cjnygard@fast.net Tue Oct 12 00:24:50 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2F9873B11AE for ; Tue, 12 Oct 2004 00:24:50 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01207-08 for ; Tue, 12 Oct 2004 00:24:48 -0400 (EDT) Received: from newmx2.fast.net (newmx2.fast.net [209.92.1.32]) by menubar.gnome.org (Postfix) with SMTP id 14BAB3B08E3 for ; Tue, 12 Oct 2004 00:24:48 -0400 (EDT) Received: (qmail 16728 invoked from network); 12 Oct 2004 04:24:39 -0000 Received: from unknown (HELO ?192.168.0.70?) ([209.60.97.42]) (envelope-sender ) by newmx2.fast.net (qmail-ldap-1.03) with SMTP for ; 12 Oct 2004 04:24:39 -0000 From: Carl Nygard To: Gtk-Perl-List In-Reply-To: <1097539477.23624.25.camel@beta.local> References: <1097539477.23624.25.camel@beta.local> Content-Type: text/plain Message-Id: <1097555030.28361.59.camel@traveler> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Tue, 12 Oct 2004 00:23:51 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Gtk2-Ex X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 04:24:50 -0000 On Mon, 2004-10-11 at 20:04, Ross McFarland wrote: > provided there are no objections i'm planning on creating a Gtk2-Ex > top-level cvs module and importing the simple stuff i currently have > into it. after that has been done i'll release a preliminary version and > then go from there. this is the next generation of the > Simple::(List|Tree|Menu) modules. > > opinions? Are you planning to include the packages Krinke and I released? From rwmcfa1@neces.com Tue Oct 12 06:43:12 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AF1833B143B for ; Tue, 12 Oct 2004 06:43:12 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16923-10 for ; Tue, 12 Oct 2004 06:43:11 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id 664C23B143A for ; Tue, 12 Oct 2004 06:43:11 -0400 (EDT) Received: from [192.168.1.45] (unknown [12.222.230.66]) by merry.dreamhost.com (Postfix) with ESMTP id F1521175113; Tue, 12 Oct 2004 03:43:08 -0700 (PDT) From: Ross McFarland To: Carl Nygard In-Reply-To: <1097555030.28361.59.camel@traveler> References: <1097539477.23624.25.camel@beta.local> <1097555030.28361.59.camel@traveler> Content-Type: text/plain Message-Id: <1097577788.23624.29.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Tue, 12 Oct 2004 06:43:08 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Gtk2-Ex X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 10:43:12 -0000 On Tue, 2004-10-12 at 00:23, Carl Nygard wrote: > On Mon, 2004-10-11 at 20:04, Ross McFarland wrote: > > provided there are no objections i'm planning on creating a Gtk2-Ex > > top-level cvs module and importing the simple stuff i currently have > > into it. after that has been done i'll release a preliminary version and > > then go from there. this is the next generation of the > > Simple::(List|Tree|Menu) modules. > > > > opinions? > > Are you planning to include the packages Krinke and I released? if we want to do that i suppose i should create another sourceforge project. i was mainly intending on having a place to put my stuff in cvs and since i already had access there i was going to do it there. now that i think about it it would probably be better off in its own project so that you all (if you want) and others can be added and given access to make releases and such. i'll look into this today/tonight and get back to the list. i assume i'll call it gtk2-ex. later, -- -rm http://www.neces.com/ From bulb@ucw.cz Tue Oct 12 06:59:06 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CDAF03B0B87 for ; Tue, 12 Oct 2004 06:59:06 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17577-02 for ; Tue, 12 Oct 2004 06:59:05 -0400 (EDT) Received: from vagabond.light.src (cimice4.lam.cz [212.71.168.94]) by menubar.gnome.org (Postfix) with ESMTP id 1152B3B0865 for ; Tue, 12 Oct 2004 06:59:05 -0400 (EDT) Received: from bulb by vagabond.light.src with local (Exim 3.36 #1 (Debian)) id 1CHKML-0003aP-00; Tue, 12 Oct 2004 12:58:25 +0200 Date: Tue, 12 Oct 2004 12:58:25 +0200 From: Jan Hudec To: Ross McFarland Message-ID: <20041012105825.GS703@vagabond> References: <1097539477.23624.25.camel@beta.local> <1097555030.28361.59.camel@traveler> <1097577788.23624.29.camel@beta.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="szdyR02yM8NCQUEm" Content-Disposition: inline In-Reply-To: <1097577788.23624.29.camel@beta.local> User-Agent: Mutt/1.5.6+20040907i Sender: Jan Hudec X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List , Carl Nygard Subject: Re: Gtk2-Ex X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 10:59:07 -0000 --szdyR02yM8NCQUEm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 12, 2004 at 06:43:08 -0400, Ross McFarland wrote: > On Tue, 2004-10-12 at 00:23, Carl Nygard wrote: > > On Mon, 2004-10-11 at 20:04, Ross McFarland wrote: > > > provided there are no objections i'm planning on creating a Gtk2-Ex > > > top-level cvs module and importing the simple stuff i currently have > > > into it. after that has been done i'll release a preliminary version = and > > > then go from there. this is the next generation of the > > > Simple::(List|Tree|Menu) modules. > > >=20 > > > opinions? > >=20 > > Are you planning to include the packages Krinke and I released? >=20 > if we want to do that i suppose i should create another sourceforge > project. i was mainly intending on having a place to put my stuff in cvs > and since i already had access there i was going to do it there. now > that i think about it it would probably be better off in its own project > so that you all (if you want) and others can be added and given access > to make releases and such. i'll look into this today/tonight and get > back to the list. i assume i'll call it gtk2-ex. That would be great. ---------------------------------------------------------------------------= ---- Jan 'Bulb' Hudec --szdyR02yM8NCQUEm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBa7jRRel1vVwhjGURAsuxAJ9JlYh1+CRBwt9RPFRzaRaAbISJfQCg1h1B 3bFzm5scMd6F1aq5CJcfS6s= =re9m -----END PGP SIGNATURE----- --szdyR02yM8NCQUEm-- From danflemming@mac.com Tue Oct 12 15:44:08 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41C183B071B for ; Tue, 12 Oct 2004 15:44:08 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10910-07 for ; Tue, 12 Oct 2004 15:44:06 -0400 (EDT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.85]) by menubar.gnome.org (Postfix) with ESMTP id 5524F3B073D for ; Tue, 12 Oct 2004 15:44:06 -0400 (EDT) Received: from mac.com (webmail37-en1 [10.13.8.117]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i9CJhvBP011503 for ; Tue, 12 Oct 2004 12:44:01 -0700 (PDT) Received: from webmail37 (localhost.mac.com [127.0.0.1]) by mac.com (Xserve/webmail37/MantshX 4.0) with ESMTP id i9CJhujG010499 for ; Tue, 12 Oct 2004 12:43:57 -0700 (PDT) Message-ID: <13841328.1097610236656.JavaMail.danflemming@mac.com> Date: Tue, 12 Oct 2004 12:43:56 -0700 From: Daniel Flemming To: gtk-perl-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Originating-IP: 66.46.198.10/instID=183 X-Virus-Scanned: by amavisd-new at gnome.org Subject: Getting a value from a Gtk2::ComboBoxEntry X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 19:44:08 -0000 The Gtk2::ComboBoxEntry widget is just like a Gtk2::ComboBox, except it allows the user to type in a blank space like a Gtk2::Entry. If the user doesn't type in that space, but just selects from the dropdown list, you can read the Gtk2::ComboBoxEntry the same you can a Gtk2::ComboBox, by using the get_active method. However, if the user does type, get_active just returns a -1. How do you find out what the text the user typed was? You can't just use a get_text method like you can with a Gtk2::Entry, and while the Gtk2::ComboBoxEntry widget is a container, it doesn't seem to have any children set up by default. Anyway. I'm just asking :) Dan Flemming From scott@asofyet.org Tue Oct 12 16:32:40 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 62C513B07CB for ; Tue, 12 Oct 2004 16:32:40 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13214-07 for ; Tue, 12 Oct 2004 16:32:38 -0400 (EDT) Received: from chococat.sd.dreamhost.com (chococat.sd.dreamhost.com [66.33.206.16]) by menubar.gnome.org (Postfix) with ESMTP id DD9E13B113A for ; Tue, 12 Oct 2004 16:32:37 -0400 (EDT) Received: from webmail.asofyet.org (localhost [127.0.0.1]) by chococat.sd.dreamhost.com (Postfix) with SMTP id 062DCFA83 for ; Tue, 12 Oct 2004 13:32:34 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user scott@asofyet.org) by webmail.asofyet.org with HTTP; Tue, 12 Oct 2004 16:32:34 -0400 (EDT) Message-ID: <6069.192.146.101.26.1097613154.spork@webmail.asofyet.org> In-Reply-To: <13841328.1097610236656.JavaMail.danflemming@mac.com> References: <13841328.1097610236656.JavaMail.danflemming@mac.com> Date: Tue, 12 Oct 2004 16:32:34 -0400 (EDT) From: "muppet" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Getting a value from a Gtk2::ComboBoxEntry X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 20:32:40 -0000 Daniel Flemming said: > However, if the user does type, get_active just returns a -1. How do you find > out what the text the user typed was? You can't just use a get_text method > like you can with a Gtk2::Entry, and while the Gtk2::ComboBoxEntry widget is a > container, it doesn't seem to have any children set up by default. according to http://developer.gnome.org/doc/API/2.0/gtk/GtkComboBoxEntry.html#gtk-combo-box-entry-new-with-model , it's GTK_ENTRY (GTK_BIN (combo_box_entry)->child), which translates to perl as $combo_box_entry->child (or $combo_box_entry->get_child). does that not work? -- muppet From pagaltzis@gmx.de Tue Oct 12 16:40:12 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D71B53B073E for ; Tue, 12 Oct 2004 16:40:12 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13741-02 for ; Tue, 12 Oct 2004 16:40:11 -0400 (EDT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id B866C3B0AB1 for ; Tue, 12 Oct 2004 16:40:10 -0400 (EDT) Received: (qmail 11154 invoked by uid 65534); 12 Oct 2004 20:40:10 -0000 Received: from xdsl-81-173-231-6.netcologne.de (EHLO klangraum) (81.173.231.6) by mail.gmx.net (mp017) with SMTP; 12 Oct 2004 22:40:10 +0200 X-Authenticated: #163624 Date: Tue, 12 Oct 2004 22:40:09 +0200 From: "A. Pagaltzis" To: gtk-perl-list@gnome.org Message-ID: <20041012204009.GA5306@klangraum> Mail-Followup-To: gtk-perl-list@gnome.org References: <13841328.1097610236656.JavaMail.danflemming@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13841328.1097610236656.JavaMail.danflemming@mac.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Getting a value from a Gtk2::ComboBoxEntry X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 20:40:13 -0000 * Daniel Flemming [2004-10-12 21:45]: > You can't just use a get_text method like you can with a > Gtk2::Entry, and while the Gtk2::ComboBoxEntry widget is a > container, it doesn't seem to have any children set up by > default. Are you sure? It IS_A Gtk2::Bin and the Gtk+ docs say You can get the GtkEntry from a GtkComboBoxEntry using GTK_ENTRY (GTK_BIN (combo_box_entry)->child). so you should well be able to retrieve the string using the child() method. Regards, -- Aristotle @j = ((qw)" Just " )), @a = ((qw " another" )), @p = ((qw " Perl " )), @h = ((qw " hacker " )), (()),),(s""@j,",s (" )))g), print From mj+gnome@ml.m-j-s.net Wed Oct 13 11:41:08 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 241E73B13C0 for ; Wed, 13 Oct 2004 11:41:08 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02979-01 for ; Wed, 13 Oct 2004 11:41:06 -0400 (EDT) Received: from morannon.fido.de (morannon.fido.de [213.61.255.225]) by menubar.gnome.org (Postfix) with ESMTP id 853023B1500 for ; Wed, 13 Oct 2004 11:41:05 -0400 (EDT) Received: from [80.133.26.92] (p50851A5C.dip.t-dialin.net [80.133.26.92]) (authenticated bits=0) by morannon.fido.de (8.12.8/8.12.8/redhat9-morannon-1.1a) with ESMTP id i9DFcAXZ004082 for ; Wed, 13 Oct 2004 17:38:11 +0200 Message-ID: <416D4C8F.6070609@ml.m-j-s.net> Date: Wed, 13 Oct 2004 17:41:03 +0200 From: Martin Junius User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Pub Key for RPM packages? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 15:41:08 -0000 Hi all! Can some kind soul please point me into the right direction for the GPG public key used for signing the RPM packages on sf.net? Signature : DSA/SHA1, Do 16 Sep 2004 23:50:58 CEST, Key ID 0907d3a84cfc80a9 Regards, Martin From rwmcfa1@neces.com Wed Oct 13 12:33:04 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 724BD3B1599 for ; Wed, 13 Oct 2004 12:33:04 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06160-08 for ; Wed, 13 Oct 2004 12:33:02 -0400 (EDT) Received: from chococat.sd.dreamhost.com (chococat.sd.dreamhost.com [66.33.206.16]) by menubar.gnome.org (Postfix) with ESMTP id 130CF3B11DF for ; Wed, 13 Oct 2004 12:33:02 -0400 (EDT) Received: from webmail.neces.com (localhost [127.0.0.1]) by chococat.sd.dreamhost.com (Postfix) with SMTP id 4A32AFA97; Wed, 13 Oct 2004 09:32:22 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user rwmcfa1@neces.com) by webmail.neces.com with HTTP; Wed, 13 Oct 2004 12:32:22 -0400 (EDT) Message-ID: <40944.192.146.101.26.1097685142.spork@webmail.neces.com> In-Reply-To: <416D4C8F.6070609@ml.m-j-s.net> References: <416D4C8F.6070609@ml.m-j-s.net> Date: Wed, 13 Oct 2004 12:32:22 -0400 (EDT) From: "Ross McFarland" To: "Martin Junius" User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: Pub Key for RPM packages? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 16:33:04 -0000 Martin Junius said: > Can some kind soul please point me into the right direction for the GPG > public key used for signing the RPM packages on sf.net? > > Signature : DSA/SHA1, Do 16 Sep 2004 23:50:58 CEST, Key ID > 0907d3a84cfc80a9 http://pgp.mit.edu:11371/pks/lookup?search=Ross+McFarland&op=index i was pretty sure i put the information up on the site on the front page but it doesn't seem to be there. though i think at the time there was information about releases down there. anyone got a suggestion where the info should go? -rm From mj+gnome@ml.m-j-s.net Wed Oct 13 13:40:21 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F31D83B0FEF for ; Wed, 13 Oct 2004 13:40:20 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09314-09 for ; Wed, 13 Oct 2004 13:40:18 -0400 (EDT) Received: from morannon.fido.de (morannon.fido.de [213.61.255.225]) by menubar.gnome.org (Postfix) with ESMTP id F331B3B1197 for ; Wed, 13 Oct 2004 13:40:16 -0400 (EDT) Received: from [80.133.26.92] (p50851A5C.dip.t-dialin.net [80.133.26.92]) (authenticated bits=0) by morannon.fido.de (8.12.8/8.12.8/redhat9-morannon-1.1a) with ESMTP id i9DHbNXZ006386; Wed, 13 Oct 2004 19:37:23 +0200 Message-ID: <416D687E.3020805@ml.m-j-s.net> Date: Wed, 13 Oct 2004 19:40:14 +0200 From: Martin Junius User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ross McFarland References: <416D4C8F.6070609@ml.m-j-s.net> <40944.192.146.101.26.1097685142.spork@webmail.neces.com> In-Reply-To: <40944.192.146.101.26.1097685142.spork@webmail.neces.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: Pub Key for RPM packages? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 17:40:21 -0000 Ross McFarland wrote: > http://pgp.mit.edu:11371/pks/lookup?search=Ross+McFarland&op=index Thanks. > i was pretty sure i put the information up on the site on the front > page but it doesn't seem to be there. though i think at the time > there was information about releases down there. anyone got a > suggestion where the info should go? Right on the front page or at least in the FAQ or other docs. Regards, Martin From rwmcfa1@neces.com Wed Oct 13 17:16:43 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 566EB3B16E8 for ; Wed, 13 Oct 2004 17:16:43 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19916-01 for ; Wed, 13 Oct 2004 17:16:41 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id 6E83A3B164A for ; Wed, 13 Oct 2004 17:16:38 -0400 (EDT) Received: from [192.168.1.45] (unknown [12.222.230.66]) by smeagol.dreamhost.com (Postfix) with ESMTP id 32D1823838 for ; Wed, 13 Oct 2004 14:16:37 -0700 (PDT) From: Ross McFarland To: Gtk-Perl-List In-Reply-To: <416D687E.3020805@ml.m-j-s.net> References: <416D4C8F.6070609@ml.m-j-s.net> <40944.192.146.101.26.1097685142.spork@webmail.neces.com> <416D687E.3020805@ml.m-j-s.net> Content-Type: text/plain Message-Id: <1097702196.2201.0.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 13 Oct 2004 17:16:36 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Pub Key for RPM packages? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 21:16:44 -0000 On Wed, 2004-10-13 at 13:40, Martin Junius wrote: > > i was pretty sure i put the information up on the site on the front > > page but it doesn't seem to be there. though i think at the time > > there was information about releases down there. anyone got a > > suggestion where the info should go? > > Right on the front page or at least in the FAQ or other docs. it's in the FAQ now, i'm not sure where else it would make sense to put it. -- -rm http://www.neces.com/ From dan@enthalpy.homelinux.org Wed Oct 13 21:24:06 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9DD303B127B for ; Wed, 13 Oct 2004 21:24:06 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30106-04 for ; Wed, 13 Oct 2004 21:24:05 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 0C0B63B1255 for ; Wed, 13 Oct 2004 21:24:04 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9E1WbVa005024; Thu, 14 Oct 2004 11:32:42 +1000 Message-ID: <416DD553.1000608@enthalpy.homelinux.org> Date: Thu, 14 Oct 2004 11:24:35 +1000 From: Dan User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040823) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org, dbi-users@perl.org, mysql@lists.mysql.com Content-Type: multipart/mixed; boundary="----------=_1097717568-16520-23" X-Canit-Stats-ID: 115654 - 323edbdb258b X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Cc: Cyrus Santos , Nathan Poole Subject: ANN: Gtk2::Ex::DBI-0.3 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 01:24:06 -0000 This is a multi-part message in MIME format... ------------=_1097717568-16520-23 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all. I'm pleased to announce the 3rd release of Gtk2::Ex::DBI, along with a webpage for it ( which has some more basic documentation ): http://enthalpy.homelinux.org/Gtk2-Ex-DBI/ Gtk2::Ex::DBI is a helper object that makes your gtk2-perl apps data aware. Basically, you design your GUI with Glade, and write the application logic in Perl . You then use DBI to open a connection to your database server, and use Gtk2::Ex::DBI to keep your GUI in sync with your database, and visa versa. Changes in this release: - Added DATE-ONLY support for Gnome2::DateEdit ( only tested with MySQL's yyyy-mm-dd format ... BEWARE !!! ) - Added 'order by' support - 'revert' method now deletes the current record from the *in-memory* recordset if we are currently inserting a new record - *** Added dependancy*** : Gtk2::Ex::Dialogs - used instead of my own ( admittedly dodgy ) msgbox() function - Added 'fieldlist' method, which returns a list of fields ( taken from the DB server ) - 'apply' and 'paint' methods now use $self->fieldlist which is far more robust than looking at the current position's fieldlist ( in some cases will only contain the primary key ) - Removed dependance on 'stuff.pm'. Moved date_from_GtkCalendar and date_to_GtkCalendar functionality back into Gtk2::Ex::DBI ( maybe should be another package? ). - Added ExtUtils::MakeMaker support for installation Dan ------------=_1097717568-16520-23 Content-Type: text/html; name="CANIT-VOTING-LINKS-115654-323edbdb258b.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-115654-323edbdb258b.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 115654

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1097717568-16520-23-- From kaffeetisch@gmx.de Thu Oct 14 17:52:35 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4725F3B0ACA for ; Thu, 14 Oct 2004 17:52:35 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20810-08 for ; Thu, 14 Oct 2004 17:52:33 -0400 (EDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 734713B0B4C for ; Thu, 14 Oct 2004 17:52:32 -0400 (EDT) Received: (qmail 4349 invoked by uid 65534); 14 Oct 2004 21:52:31 -0000 Received: from pD90537FB.dip.t-dialin.net (EHLO router.dialin.t-online.de) (217.5.55.251) by mail.gmx.net (mp003) with SMTP; 14 Oct 2004 23:52:31 +0200 X-Authenticated: #2092818 From: Torsten Schoenfeld To: gtk-perl-list@gnome.org Content-Type: text/plain Date: Thu, 14 Oct 2004 23:52:35 +0200 Message-Id: <1097790755.7431.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Glib and Gtk2 branched X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 21:52:35 -0000 Aloha, I just created stable branches for Glib and Gtk2, called "stable-1-06". Development of new features will continue on HEAD, bugfixes and potential stable releases will happen in stable-1-06. -- Bye, -Torsten From rwmcfa1@neces.com Thu Oct 14 19:01:20 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EE5683B0924 for ; Thu, 14 Oct 2004 19:01:19 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23560-05 for ; Thu, 14 Oct 2004 19:01:16 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id 1FDB13B0B58 for ; Thu, 14 Oct 2004 19:00:29 -0400 (EDT) Received: from [192.168.1.45] (unknown [12.222.230.66]) by smeagol.dreamhost.com (Postfix) with ESMTP id CF3E72383B for ; Thu, 14 Oct 2004 16:00:27 -0700 (PDT) From: Ross McFarland To: Gtk-Perl-List In-Reply-To: <1097790755.7431.3.camel@localhost> References: <1097790755.7431.3.camel@localhost> Content-Type: text/plain Message-Id: <1097794822.2201.9.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 14 Oct 2004 19:00:22 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Glib and Gtk2 branched X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 23:01:20 -0000 On Thu, 2004-10-14 at 17:52, Torsten Schoenfeld wrote: > Aloha, > > I just created stable branches for Glib and Gtk2, called "stable-1-06". > Development of new features will continue on HEAD, bugfixes and > potential stable releases will happen in stable-1-06. unstable-2-5-x-branch merged into head. passes at binding and testing GtkIconView, GtkCellView, and GtkAboutDialog. an entry was also made in TODO about GDK_OWNER_CHANGE event being added. -- -rm http://www.neces.com/ From kbg-octoz@tiscali.fr Mon Oct 18 10:15:59 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BCEFA3B0F6E for ; Mon, 18 Oct 2004 10:15:59 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29798-01 for ; Mon, 18 Oct 2004 10:15:56 -0400 (EDT) Received: from mail.libertysurf.net (mx-out.tiscali.fr [213.36.80.91]) by menubar.gnome.org (Postfix) with ESMTP id 4A3FF3B1104 for ; Mon, 18 Oct 2004 10:15:51 -0400 (EDT) Received: from [212.83.144.244] (212.83.144.244) by mail.libertysurf.net (6.5.036) id 41736AE1000E827E for gtk-perl-list@gnome.org; Mon, 18 Oct 2004 16:15:48 +0200 Message-ID: <4173D018.8010402@tiscali.fr> Date: Mon, 18 Oct 2004 16:15:52 +0200 From: kbg-octoz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Menu into Entry() X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 14:15:59 -0000 Hi all Simple question: Is it possible to integrate a Menu (like in OptionMenu) into a Entry() widget? I want that the widget can be edit if a user desn't manage to find the good selection into the menu. Thanx for all From kbg-octoz@tiscali.fr Mon Oct 18 10:21:58 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4AD473B0F55 for ; Mon, 18 Oct 2004 10:21:58 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30051-02 for ; Mon, 18 Oct 2004 10:21:57 -0400 (EDT) Received: from mail.libertysurf.net (mx-out.tiscali.fr [213.36.80.91]) by menubar.gnome.org (Postfix) with ESMTP id F29BB3B108A for ; Mon, 18 Oct 2004 10:21:56 -0400 (EDT) Received: from [212.83.144.244] (212.83.144.244) by mail.libertysurf.net (6.5.036) id 4173670B000EC81B for gtk-perl-list@gnome.org; Mon, 18 Oct 2004 16:14:01 +0200 Message-ID: <4173CFAC.7090809@tiscali.fr> Date: Mon, 18 Oct 2004 16:14:04 +0200 From: kbg-octoz User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040618 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Menu into Entry() X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 14:21:58 -0000 Hi all Simple question: Is it possible to integrate a Menu (like in OptionMenu) into a Entry() widget? I want that the widget can be edit if a user desn't manage to find the good selection into the menu. Thanx for all From scott@asofyet.org Mon Oct 18 10:30:49 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4F153B11A1 for ; Mon, 18 Oct 2004 10:30:49 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30394-08 for ; Mon, 18 Oct 2004 10:30:47 -0400 (EDT) Received: from chococat.sd.dreamhost.com (chococat.sd.dreamhost.com [66.33.206.16]) by menubar.gnome.org (Postfix) with ESMTP id E8BEE3B1188 for ; Mon, 18 Oct 2004 10:30:46 -0400 (EDT) Received: from webmail.asofyet.org (localhost [127.0.0.1]) by chococat.sd.dreamhost.com (Postfix) with SMTP id 77DABFFDF for ; Mon, 18 Oct 2004 07:30:42 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user scott@asofyet.org) by webmail.asofyet.org with HTTP; Mon, 18 Oct 2004 10:30:42 -0400 (EDT) Message-ID: <44685.192.146.101.26.1098109842.spork@webmail.asofyet.org> In-Reply-To: <4173D018.8010402@tiscali.fr> References: <4173D018.8010402@tiscali.fr> Date: Mon, 18 Oct 2004 10:30:42 -0400 (EDT) From: "muppet" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Menu into Entry() X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 14:30:49 -0000 kbg-octoz said: > Is it possible to integrate a Menu (like in OptionMenu) into a Entry() > widget? > I want that the widget can be edit if a user desn't manage to find the > good selection into the menu. you want either a Gtk2::ComboBoxEntry (available from gtk+ >= 2.4) or a Gtk2::Combo (slightly cumbersome and broken, but available since gtk+ 1.x). -- muppet From cjnygard@fast.net Tue Oct 19 16:57:37 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CC4813B1358 for ; Tue, 19 Oct 2004 16:57:37 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13798-06 for ; Tue, 19 Oct 2004 16:57:35 -0400 (EDT) Received: from newmx3.fast.net (newmx3.fast.net [209.92.1.33]) by menubar.gnome.org (Postfix) with SMTP id 63E9F3B1123 for ; Tue, 19 Oct 2004 16:57:35 -0400 (EDT) Received: (qmail 1654 invoked from network); 19 Oct 2004 20:57:34 -0000 Received: from unknown (HELO ?192.168.0.70?) ([209.60.106.36]) (envelope-sender ) by newmx3.fast.net (qmail-ldap-1.03) with SMTP for ; 19 Oct 2004 20:57:34 -0000 From: Carl Nygard To: gtk-perl-list@gnome.org Content-Type: text/plain Message-Id: <1098219388.4671.67.camel@traveler> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Tue, 19 Oct 2004 16:56:28 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2004 20:57:38 -0000 Hoi, I got the perl-Gtk2 srpms from freshrpms, and I'm having trouble building on x86_64. Specifically, the man pages seem all gzip'd, but the spec file is expecting them as *.3pm files. Any clues? Do I need to upgrade/update? This all worked fine on i386 by the way, using the exact same src.rpm files. Regards, Carl From dkasak@nusconsulting.com.au Tue Oct 19 19:07:42 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A893F3B1378 for ; Tue, 19 Oct 2004 19:07:40 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19189-02 for ; Tue, 19 Oct 2004 19:07:37 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 8B8363B0D4C for ; Tue, 19 Oct 2004 19:07:35 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9JN8QIl008833 for ; Wed, 20 Oct 2004 09:08:26 +1000 Message-ID: <41759E9F.9040003@nusconsulting.com.au> Date: Wed, 20 Oct 2004 09:09:19 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org Content-Type: multipart/mixed; boundary="----------=_1098227306-23333-102" X-Canit-Stats-ID: 118422 - 16117983158f X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Colour text in a Gtk2::CellRendererText in a Gtk2::TreeView X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2004 23:07:42 -0000 This is a multi-part message in MIME format... ------------=_1098227306-23333-102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all. Some of my users want particular cells in a Gtk2::TreeView to be highlighted in different colours depending on the data. eg if one field has a flag set to 'parent' then another cell should be formatted red, etc. Is it possible to do this? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1098227306-23333-102 Content-Type: text/html; name="CANIT-VOTING-LINKS-118422-16117983158f.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-118422-16117983158f.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 118422

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1098227306-23333-102-- From scott@asofyet.org Tue Oct 19 21:07:17 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9D5DB3B0A92 for ; Tue, 19 Oct 2004 21:07:17 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23052-10 for ; Tue, 19 Oct 2004 21:07:16 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id C68AA3B12FE for ; Tue, 19 Oct 2004 21:07:15 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by pippin.dreamhost.com (Postfix) with ESMTP id BC18A16D203; Tue, 19 Oct 2004 18:07:14 -0700 (PDT) In-Reply-To: <41759E9F.9040003@nusconsulting.com.au> References: <41759E9F.9040003@nusconsulting.com.au> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <61A5E130-2234-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Tue, 19 Oct 2004 21:07:15 -0400 To: Daniel Kasak X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: Colour text in a Gtk2::CellRendererText in a Gtk2::TreeView X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 01:07:17 -0000 On Oct 19, 2004, at 7:09 PM, Daniel Kasak wrote: > Some of my users want particular cells in a Gtk2::TreeView to be > highlighted in different colours depending on the data. eg if one > field has a flag set to 'parent' then another cell should be formatted > red, etc. > > Is it possible to do this? absolutely, but it's probably not as pretty as you'd like. if all of the cells in a column will be the same color, you can do $renderer->set (foreground => 'red', # there's also foreground-gdk foreground_set => TRUE); # so it gets used if different rows should have different colors, there are two approaches you can use. a) calculate the color to use and store it in a column in your Gtk2::TreeModel, and then set up a TreeViewColumn attribute to use that column to set the foreground color. $renderer = Gtl2::CellRendererText->new; $renderer->set (foreground_set => TRUE); $column = Gtk2::TreeViewColumn->new_with_attributes ($title, $renderer, text => $text_column_index, foreground => $color_column_index); b) or, you can calculate the color on the fly in a cell data function. this can get pretty processing-intensive, but is the only way to handle some extremely dynamic data. the cell data func gets called every time the column goes to draw a cell; its purpose is to set the properties of the cell renderer, so the renderer draws the right stuff. $column = Gtk2::TreeViewColumn->new; $renderer = Gtk2::CellRendererText->new; $renderer->set (foreground_set => TRUE); $column->pack_start ($renderer, TRUE); $column->set_cell_data_func ($renderer, sub { my ($column, $cell, $model, $iter) = @_; # use an interesting and sophisticated algorithm to # determine what text to display and what color it # should be (a la spreadsheet cell functions, where # the contents of the cell are not what is displayed) my ($text, $color) = do_something_cool ($model, $iter); $cell->set (text => $text, foreground => $color); }); there's another example of using a cell data func in Gtk2/examples/cellrenderer_popup.pl -- the custom cell data func formats data from a Gtk2::Scalar column in the model, where the scalars are array references; without the cell data func, the renderer shows "ARRAY(0xabcdef)" etc. the nice thing about the cell data func is that you can do anything you want. the drawback is that it is very easy to make your treeview render sluggishly, so you need to optimize your code there. -- "Quit hittin' yourself! Quit hittin' yourself!" -- Elysse, playing with a newborn baby. From dkasak@nusconsulting.com.au Wed Oct 20 00:38:40 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 00E203B0D2B for ; Wed, 20 Oct 2004 00:38:40 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29899-10 for ; Wed, 20 Oct 2004 00:38:36 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id C1EF33B12DD for ; Wed, 20 Oct 2004 00:38:35 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9K4dSIl010692 for ; Wed, 20 Oct 2004 14:39:29 +1000 Message-ID: <4175EC34.1010705@nusconsulting.com.au> Date: Wed, 20 Oct 2004 14:40:20 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org References: <41759E9F.9040003@nusconsulting.com.au> <61A5E130-2234-11D9-83FE-000A9580E5E0@asofyet.org> In-Reply-To: <61A5E130-2234-11D9-83FE-000A9580E5E0@asofyet.org> Content-Type: multipart/mixed; boundary="----------=_1098247169-17867-36" X-Canit-Stats-ID: 118629 - 564b5940d2f3 X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Colour text in a Gtk2::CellRendererText in a Gtk2::TreeView X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 04:38:40 -0000 This is a multi-part message in MIME format... ------------=_1098247169-17867-36 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline muppet wrote: > > On Oct 19, 2004, at 7:09 PM, Daniel Kasak wrote: > >> Some of my users want particular cells in a Gtk2::TreeView to be >> highlighted in different colours depending on the data. eg if one >> field has a flag set to 'parent' then another cell should be >> formatted red, etc. >> >> Is it possible to do this? > > > absolutely, but it's probably not as pretty as you'd like. > > b) or, you can calculate the color on the fly in a cell data > function. this can get pretty processing-intensive, but is the only > way to handle some extremely dynamic data. the cell data func gets > called every time the column goes to draw a cell; its purpose is to > set the properties of the cell renderer, so the renderer draws the > right stuff. > > $column = Gtk2::TreeViewColumn->new; > $renderer = Gtk2::CellRendererText->new; > $renderer->set (foreground_set => TRUE); > $column->pack_start ($renderer, TRUE); > $column->set_cell_data_func ($renderer, sub { > my ($column, $cell, $model, $iter) = @_; > # use an interesting and sophisticated algorithm to > # determine what text to display and what color it > # should be (a la spreadsheet cell functions, where > # the contents of the cell are not what is displayed) > my ($text, $color) = do_something_cool ($model, $iter); > $cell->set (text => $text, > foreground => $color); > }); > Excellent :) This works very well, and it's even quite fast ( at least for the couple of hundred rows that I've given it ). All of the colours I've tried so far have worked, but where is the list of available colours? The docs say: 'foreground' (string : writable) Foreground color as a string -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1098247169-17867-36 Content-Type: text/html; name="CANIT-VOTING-LINKS-118629-564b5940d2f3.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-118629-564b5940d2f3.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 118629

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1098247169-17867-36-- From kaffeetisch@gmx.de Wed Oct 20 02:35:45 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 792263B0FEE for ; Wed, 20 Oct 2004 02:35:45 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01030-04 for ; Wed, 20 Oct 2004 02:35:42 -0400 (EDT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id C5A5B3B0E66 for ; Wed, 20 Oct 2004 02:35:41 -0400 (EDT) Received: (qmail 12274 invoked by uid 65534); 20 Oct 2004 06:35:40 -0000 Received: from pD9569B19.dip.t-dialin.net (EHLO router.dialin.t-online.de) (217.86.155.25) by mail.gmx.net (mp027) with SMTP; 20 Oct 2004 08:35:40 +0200 X-Authenticated: #2092818 From: Torsten Schoenfeld To: gtk-perl-list@gnome.org In-Reply-To: <4175EC34.1010705@nusconsulting.com.au> References: <41759E9F.9040003@nusconsulting.com.au> <61A5E130-2234-11D9-83FE-000A9580E5E0@asofyet.org> <4175EC34.1010705@nusconsulting.com.au> Content-Type: text/plain Date: Wed, 20 Oct 2004 08:35:35 +0200 Message-Id: <1098254135.1837.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Colour text in a Gtk2::CellRendererText in a Gtk2::TreeView X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 06:35:45 -0000 On Wed, 2004-10-20 at 14:40 +1000, Daniel Kasak wrote: > All of the colours I've tried so far have worked, but where is the list > of available colours? The cell renderer passes the value on to gdk_color_parse, whose docs[1] say: | The text string can be in any of the forms accepted by XParseColor; | these include name for a color from rgb.txt, such as DarkSlateGray, or | a hex specification such as 305050. So, take a look at XParseColor(3) and /usr/X11R6/lib/X11/rgb.txt. -- HTH, -Torsten [1] http://developer.gnome.org/doc/API/2.0/gdk/gdk-Colormaps-and-Colors.html#id2620550 From rwmcfa1@neces.com Wed Oct 20 08:44:12 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 27EF83B1468 for ; Wed, 20 Oct 2004 08:44:12 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17401-10 for ; Wed, 20 Oct 2004 08:44:10 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id C21AF3B13DA for ; Wed, 20 Oct 2004 08:44:09 -0400 (EDT) Received: from [192.168.1.45] (unknown [12.222.230.66]) by merry.dreamhost.com (Postfix) with ESMTP id 4E4E31751BF for ; Wed, 20 Oct 2004 05:44:07 -0700 (PDT) From: Ross McFarland To: Gtk-Perl-List In-Reply-To: <1098219388.4671.67.camel@traveler> References: <1098219388.4671.67.camel@traveler> Content-Type: text/plain Message-Id: <1098276246.2201.102.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 20 Oct 2004 08:44:07 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 12:44:12 -0000 On Tue, 2004-10-19 at 16:56, Carl Nygard wrote: > Hoi, > > I got the perl-Gtk2 srpms from freshrpms, and I'm having trouble > building on x86_64. Specifically, the man pages seem all gzip'd, but > the spec file is expecting them as *.3pm files. > > Any clues? Do I need to upgrade/update? there's nothing in the spec files that requests particular formats or extensions for the man pages. the file lists are auto-generated by rpm/perl and therefore i suspect that's where the problems lies (with rpm/perl on x86_64.) i'd be more than happy to track the problem down if i had a x86_64 system (donations welcome, heh) on which to do it. can you build Gtk2 on that system from source (not rpm) on that system? are the freshrpm rpms my original rpms or someone else's pkg-ing? -- -rm http://www.neces.com/ From rwmcfa1@neces.com Wed Oct 20 08:47:32 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A623F3B149A for ; Wed, 20 Oct 2004 08:47:32 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17599-05 for ; Wed, 20 Oct 2004 08:47:31 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id 7C1703B1482 for ; Wed, 20 Oct 2004 08:47:31 -0400 (EDT) Received: from [192.168.1.45] (unknown [12.222.230.66]) by merry.dreamhost.com (Postfix) with ESMTP id 4AE631751DF for ; Wed, 20 Oct 2004 05:47:29 -0700 (PDT) From: Ross McFarland To: Gtk-Perl-List Content-Type: text/plain Message-Id: <1098276449.2201.107.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 20 Oct 2004 08:47:30 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Gtk2-Perl-Ex X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 12:47:32 -0000 apparently if sourceforge sent me an email (as they were supposed to) that the project was accepted it was classified as junk-mail. i decided to check for myself and went to my sf.net and it had been created: Gtk2-Perl-Ex: http://sourceforge.net/projects/gtk2-perl-ex/ an initial release of Gtk2-Ex-Simple-(List|Tree|Menu) will be up there within the next couple of days. i will also be working out how the whole thing will be structured/work. if you have an Ex module and are interested in joining this project (as a central place to promote them) let me know. -- -rm http://www.neces.com/ From cjnygard@fast.net Wed Oct 20 13:16:38 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F37393B09E4 for ; Wed, 20 Oct 2004 13:16:37 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32148-10 for ; Wed, 20 Oct 2004 13:16:36 -0400 (EDT) Received: from newmx1.fast.net (newmx1.fast.net [209.92.1.31]) by menubar.gnome.org (Postfix) with SMTP id B14F53B07F1 for ; Wed, 20 Oct 2004 13:16:36 -0400 (EDT) Received: (qmail 19221 invoked from network); 20 Oct 2004 17:16:33 -0000 Received: from unknown (HELO ?192.168.0.70?) ([209.60.97.217]) (envelope-sender ) by newmx1.fast.net (qmail-ldap-1.03) with SMTP for ; 20 Oct 2004 17:16:33 -0000 From: Carl Nygard To: Ross McFarland In-Reply-To: <1098276246.2201.102.camel@beta.local> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> Content-Type: text/plain Message-Id: <1098292522.4671.112.camel@traveler> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 20 Oct 2004 13:15:23 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 17:16:38 -0000 On Wed, 2004-10-20 at 08:44, Ross McFarland wrote: > On Tue, 2004-10-19 at 16:56, Carl Nygard wrote: > > Hoi, > > > > I got the perl-Gtk2 srpms from freshrpms, and I'm having trouble > > building on x86_64. Specifically, the man pages seem all gzip'd, but > > the spec file is expecting them as *.3pm files. > > > > Any clues? Do I need to upgrade/update? > > there's nothing in the spec files that requests particular formats or > extensions for the man pages. the file lists are auto-generated by > rpm/perl and therefore i suspect that's where the problems lies (with > rpm/perl on x86_64.) i'd be more than happy to track the problem down if > i had a x86_64 system (donations welcome, heh) on which to do it. > > can you build Gtk2 on that system from source (not rpm) on that system? > are the freshrpm rpms my original rpms or someone else's pkg-ing? the src.rpms are from sourceforge, (voxel mirror). I'm working from the tar.gz files now, will let you know... From cjnygard@fast.net Wed Oct 20 14:16:31 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D7C493B0EEC for ; Wed, 20 Oct 2004 14:16:31 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01935-08 for ; Wed, 20 Oct 2004 14:16:30 -0400 (EDT) Received: from newmx2.fast.net (newmx2.fast.net [209.92.1.32]) by menubar.gnome.org (Postfix) with SMTP id B29443B0ED0 for ; Wed, 20 Oct 2004 14:16:30 -0400 (EDT) Received: (qmail 32369 invoked from network); 20 Oct 2004 18:16:28 -0000 Received: from unknown (HELO ?192.168.0.70?) ([209.60.97.217]) (envelope-sender ) by newmx2.fast.net (qmail-ldap-1.03) with SMTP for ; 20 Oct 2004 18:16:28 -0000 From: Carl Nygard To: Ross McFarland In-Reply-To: <1098276246.2201.102.camel@beta.local> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> Content-Type: text/plain Message-Id: <1098296118.4671.152.camel@traveler> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 20 Oct 2004 14:15:18 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 18:16:32 -0000 On Wed, 2004-10-20 at 08:44, Ross McFarland wrote: > On Tue, 2004-10-19 at 16:56, Carl Nygard wrote: > > Hoi, > > > > I got the perl-Gtk2 srpms from freshrpms, and I'm having trouble > > building on x86_64. Specifically, the man pages seem all gzip'd, but > > the spec file is expecting them as *.3pm files. > > > > Any clues? Do I need to upgrade/update? > > there's nothing in the spec files that requests particular formats or > extensions for the man pages. the file lists are auto-generated by > rpm/perl and therefore i suspect that's where the problems lies (with > rpm/perl on x86_64.) i'd be more than happy to track the problem down if > i had a x86_64 system (donations welcome, heh) on which to do it. > > can you build Gtk2 on that system from source (not rpm) on that system? > are the freshrpm rpms my original rpms or someone else's pkg-ing? Here's the relevant part of the rpm output (from make dist-rpms) Commentary inline: + '[' -x /usr/lib64/rpm/brp-compress ']' ## looking for the brp-compress script, ## but %{_libdir}=/usr/lib64 on x86_64, see below: + echo libdir= /usr/lib64 libdir= /usr/lib64 + find /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr -type f -print + sed 's@^/var/tmp/perl-ExtUtils-Depends-0.204-1-root@@g' ++ cat perl-ExtUtils-Depends-0.204-1-filelist ## So the find | sed > filelist only finds uncompressed *.3pm + '[' '/usr/lib/perl5/site_perl/5.8.3/ExtUtils/Depends.pm /usr/share/man/man3/ExtUtils::Depends.3pmX' = X ']' + /usr/lib/rpm/find-debuginfo.sh /home/mwsadm/rpms/BUILD/ExtUtils-Depends-0.204 0 blocks find: /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr/lib/debug: No such file or directory + /usr/lib/rpm/redhat/brp-compress ## And now we successfully find brp-compress, ## which changes the files from what we know in the filelist ## This must be inherent in the rpm binary, I don't see it ## in the generated .spec file + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump Processing files: perl-ExtUtils-Depends-0.204-1 error: File not found: /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr/share/man/man3/ExtUtils::Depends.3pm Finally found the docs where the macros are defined (that was way too hard). The only thing I can come up with is to do this: -[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress +[ -x %{_prefix}/%{_lib}/rpm/brp-compress ] && %{_prefix}/%{_lib}/rpm/brp-compress This "fix" is probably consistent throughout the .spec.in files. Once we agree on the fix I can make the changes and test on i386 and x86_64 for you. I really wish they had a macro for %{_librpmdir}, or even macros for the /usr/lib/rpm/brp-* scripts or something I think there's something wrong with using brp-compress behind your back when it changes filenames on you. That's either a bug or my complete ignorance. Your prompt attention is much appreciated;) Regards, Carl From rwmcfa1@neces.com Wed Oct 20 14:45:40 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EAD783B1573 for ; Wed, 20 Oct 2004 14:45:39 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03199-08 for ; Wed, 20 Oct 2004 14:45:36 -0400 (EDT) Received: from chococat.sd.dreamhost.com (chococat.sd.dreamhost.com [66.33.206.16]) by menubar.gnome.org (Postfix) with ESMTP id ED6943B1098 for ; Wed, 20 Oct 2004 14:45:33 -0400 (EDT) Received: from webmail.neces.com (localhost [127.0.0.1]) by chococat.sd.dreamhost.com (Postfix) with SMTP id 35C8EFED1; Wed, 20 Oct 2004 11:45:29 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user rwmcfa1@neces.com) by webmail.neces.com with HTTP; Wed, 20 Oct 2004 14:45:29 -0400 (EDT) Message-ID: <36085.192.146.101.26.1098297929.spork@webmail.neces.com> In-Reply-To: <1098296118.4671.152.camel@traveler> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> <1098296118.4671.152.camel@traveler> Date: Wed, 20 Oct 2004 14:45:29 -0400 (EDT) From: "Ross McFarland" To: "Carl Nygard" User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 18:45:40 -0000 Carl Nygard said: > Processing files: perl-ExtUtils-Depends-0.204-1 > error: File not found: > /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr/share/man/man3/ExtUtils::Depends.3pm > > Finally found the docs where the macros are defined (that was way too > hard). > > The only thing I can come up with is to do this: > > -[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress > +[ -x %{_prefix}/%{_lib}/rpm/brp-compress ] && > %{_prefix}/%{_lib}/rpm/brp-compress i suspect this is just preventing brp-compress from running. -x ... will likely fail b/c i don't think brp-compress will be in _prefix..., the location into which the rpm is building. i'm not 100% that line should be in there, at least i don't know off hand what it does. it was probably in the examples i based our spec files off of so i left it alone. what happens if you totally remove it? > I think there's something wrong with using brp-compress behind your back > when it changes filenames on you. That's either a bug or my complete > ignorance. the next two lines are building up the filelist on the fly using the find command: find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist that should have the correct extensions reguardless of what then ended up being. (changed or not) it builds the list after brp-compress has been run. i'm not sure how that could end up with invalid file names. i think something bigger is going on here. -rm From cjnygard@fast.net Wed Oct 20 15:01:44 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AF5F03B0B8E for ; Wed, 20 Oct 2004 15:01:44 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04113-10 for ; Wed, 20 Oct 2004 15:01:43 -0400 (EDT) Received: from newmx3.fast.net (newmx3.fast.net [209.92.1.33]) by menubar.gnome.org (Postfix) with SMTP id 52CC03B08E8 for ; Wed, 20 Oct 2004 15:01:43 -0400 (EDT) Received: (qmail 30195 invoked from network); 20 Oct 2004 19:01:39 -0000 Received: from unknown (HELO ?192.168.0.70?) ([209.60.97.217]) (envelope-sender ) by newmx3.fast.net (qmail-ldap-1.03) with SMTP for ; 20 Oct 2004 19:01:39 -0000 From: Carl Nygard To: Ross McFarland In-Reply-To: <36085.192.146.101.26.1098297929.spork@webmail.neces.com> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> <1098296118.4671.152.camel@traveler> <36085.192.146.101.26.1098297929.spork@webmail.neces.com> Content-Type: text/plain Message-Id: <1098298828.4671.166.camel@traveler> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 20 Oct 2004 15:00:28 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 19:01:44 -0000 I feel like we're talking at cross purposes. a) brp-compress is set to run before the filelist is created, because otherwise the 'find | sed > filelist' command will not get the *.3pm.gz files that eventually get created by brp-compress when it runs via rpmbuild internals (I'm assuming this last bit based on the rpmbuild output) b) [ -x %{_libdir}/brp-compress ] does indeed fail, preventing brp-compress from running at the desirable time c) the rpmbuild-driven brp-compress seems to run after the 'find | sed > filelist' bit (check the output I sent), so it changes the *.3pm to *.3pm.gz files d) now the %files -f blah-blah-filelist is just plain wrong and rpm fails with bad files errors The fix I think is that [ -x %{_libdir}/brp-compress] && blah/brp-compress needs to run as specified in the spec.in file. Taking it out would be the same as the current behavior, which isn't running it either (due to _libdir=/usr/lib64) I hope that's clearer... Regards, Carl On Wed, 2004-10-20 at 14:45, Ross McFarland wrote: > Carl Nygard said: > > Processing files: perl-ExtUtils-Depends-0.204-1 > > error: File not found: > > /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr/share/man/man3/ExtUtils::Depends.3pm > > > > Finally found the docs where the macros are defined (that was way too > > hard). > > > > The only thing I can come up with is to do this: > > > > -[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress > > +[ -x %{_prefix}/%{_lib}/rpm/brp-compress ] && > > %{_prefix}/%{_lib}/rpm/brp-compress > > i suspect this is just preventing brp-compress from running. -x ... will > likely fail b/c i don't think brp-compress will be in _prefix..., the location > into which the rpm is building. > > i'm not 100% that line should be in there, at least i don't know off hand what > it does. it was probably in the examples i based our spec files off of so i > left it alone. what happens if you totally remove it? > > > I think there's something wrong with using brp-compress behind your back > > when it changes filenames on you. That's either a bug or my complete > > ignorance. > > the next two lines are building up the filelist on the fly using the find > command: > > find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ > sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist > > that should have the correct extensions reguardless of what then ended up > being. (changed or not) it builds the list after brp-compress has been run. > i'm not sure how that could end up with invalid file names. i think something > bigger is going on here. > > -rm > _______________________________________________ > gtk-perl-list mailing list > gtk-perl-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-perl-list From cjnygard@fast.net Wed Oct 20 15:23:19 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 33A093B113E for ; Wed, 20 Oct 2004 15:23:19 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05284-10 for ; Wed, 20 Oct 2004 15:23:16 -0400 (EDT) Received: from newmx3.fast.net (newmx3.fast.net [209.92.1.33]) by menubar.gnome.org (Postfix) with SMTP id B57103B10D1 for ; Wed, 20 Oct 2004 15:22:41 -0400 (EDT) Received: (qmail 3325 invoked from network); 20 Oct 2004 19:22:40 -0000 Received: from unknown (HELO ?192.168.0.70?) ([209.60.97.217]) (envelope-sender ) by newmx3.fast.net (qmail-ldap-1.03) with SMTP for ; 20 Oct 2004 19:22:40 -0000 From: Carl Nygard To: Ross McFarland In-Reply-To: <36085.192.146.101.26.1098297929.spork@webmail.neces.com> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> <1098296118.4671.152.camel@traveler> <36085.192.146.101.26.1098297929.spork@webmail.neces.com> Content-Type: text/plain Message-Id: <1098300090.4671.171.camel@traveler> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 20 Oct 2004 15:21:30 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 19:23:20 -0000 And now I'm really confused. my /usr/lib/rpm/macros defines _lib="lib", but running the rpmbuild process with a simple 'echo lib=%{_lib}' shows lib64 as the result. So somewhere _lib is getting redefined, and I can't see where. Not anywhere (that I know) in /usr/lib/rpm or in /etc/rpm. Now I'm clueless, the only solution I can see is either: sudo ln -s /usr/lib/rpm /usr/lib64/rpm or hardcode the path to brp-compress in the %install portion of the spec file. ln -s will work for me temporarily Just figure out, there's architecture-specific subdir with it's own macro redefinitions. Mystery solved, but still no good solution. On Wed, 2004-10-20 at 14:45, Ross McFarland wrote: > Carl Nygard said: > > Processing files: perl-ExtUtils-Depends-0.204-1 > > error: File not found: > > /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr/share/man/man3/ExtUtils::Depends.3pm > > > > Finally found the docs where the macros are defined (that was way too > > hard). > > > > The only thing I can come up with is to do this: > > > > -[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress > > +[ -x %{_prefix}/%{_lib}/rpm/brp-compress ] && > > %{_prefix}/%{_lib}/rpm/brp-compress > > i suspect this is just preventing brp-compress from running. -x ... will > likely fail b/c i don't think brp-compress will be in _prefix..., the location > into which the rpm is building. > > i'm not 100% that line should be in there, at least i don't know off hand what > it does. it was probably in the examples i based our spec files off of so i > left it alone. what happens if you totally remove it? > > > I think there's something wrong with using brp-compress behind your back > > when it changes filenames on you. That's either a bug or my complete > > ignorance. > > the next two lines are building up the filelist on the fly using the find > command: > > find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ > sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist > > that should have the correct extensions reguardless of what then ended up > being. (changed or not) it builds the list after brp-compress has been run. > i'm not sure how that could end up with invalid file names. i think something > bigger is going on here. > > -rm > _______________________________________________ > gtk-perl-list mailing list > gtk-perl-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-perl-list From cjnygard@fast.net Wed Oct 20 16:19:20 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E35B83B14CB for ; Wed, 20 Oct 2004 16:19:19 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08521-02 for ; Wed, 20 Oct 2004 16:19:16 -0400 (EDT) Received: from newmx2.fast.net (newmx2.fast.net [209.92.1.32]) by menubar.gnome.org (Postfix) with SMTP id B9E953B0EE0 for ; Wed, 20 Oct 2004 16:19:16 -0400 (EDT) Received: (qmail 21212 invoked from network); 20 Oct 2004 20:19:15 -0000 Received: from unknown (HELO ?192.168.0.70?) ([209.60.97.217]) (envelope-sender ) by newmx2.fast.net (qmail-ldap-1.03) with SMTP for ; 20 Oct 2004 20:19:15 -0000 From: Carl Nygard To: Ross McFarland In-Reply-To: <1098300090.4671.171.camel@traveler> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> <1098296118.4671.152.camel@traveler> <36085.192.146.101.26.1098297929.spork@webmail.neces.com> <1098300090.4671.171.camel@traveler> Content-Type: text/plain Message-Id: <1098303484.4671.180.camel@traveler> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 20 Oct 2004 16:18:05 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 20:19:20 -0000 One more time... Now that I browsed through the /usr/lib/rpm/x86_64-linux/macros file, I see the following definition: %__os_install_post \ /usr/lib/rpm/brp-compress \ /usr/lib/rpm/brp-strip \ /usr/lib/rpm/brp-strip-static-archive \ /usr/lib/rpm/brp-strip-comment-note \ %{nil} This tell me where the brp-compress is coming from. It also indicates that it's probably not so bad to hardcode the path to brp-compress, since that's hardcoded in the ./rpm/-linux/macros file. So I propose the following patch instead: -[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress This seems to work on x86_64, and I'd assume it works on i386, since the path is hardcoded in ./rpm/i[3456]86-linux/macros as well. If you want me to generate real patches for all the spec.in files, I can do that as well. But I'm betting they will all be the same boilerplate fix. Regards, Carl On Wed, 2004-10-20 at 15:21, Carl Nygard wrote: > And now I'm really confused. my /usr/lib/rpm/macros defines _lib="lib", > but running the rpmbuild process with a simple 'echo lib=%{_lib}' shows > lib64 as the result. > > So somewhere _lib is getting redefined, and I can't see where. Not > anywhere (that I know) in /usr/lib/rpm or in /etc/rpm. > > Now I'm clueless, the only solution I can see is either: > > sudo ln -s /usr/lib/rpm /usr/lib64/rpm > or hardcode the path to brp-compress in the %install portion of the spec > file. > > ln -s will work for me temporarily > > > Just figure out, there's architecture-specific subdir with it's own > macro redefinitions. Mystery solved, but still no good solution. > > On Wed, 2004-10-20 at 14:45, Ross McFarland wrote: > > Carl Nygard said: > > > Processing files: perl-ExtUtils-Depends-0.204-1 > > > error: File not found: > > > /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr/share/man/man3/ExtUtils::Depends.3pm > > > > > > Finally found the docs where the macros are defined (that was way too > > > hard). > > > > > > The only thing I can come up with is to do this: > > > > > > -[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress > > > +[ -x %{_prefix}/%{_lib}/rpm/brp-compress ] && > > > %{_prefix}/%{_lib}/rpm/brp-compress > > > > i suspect this is just preventing brp-compress from running. -x ... will > > likely fail b/c i don't think brp-compress will be in _prefix..., the location > > into which the rpm is building. > > > > i'm not 100% that line should be in there, at least i don't know off hand what > > it does. it was probably in the examples i based our spec files off of so i > > left it alone. what happens if you totally remove it? > > > > > I think there's something wrong with using brp-compress behind your back > > > when it changes filenames on you. That's either a bug or my complete > > > ignorance. > > > > the next two lines are building up the filelist on the fly using the find > > command: > > > > find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ > > sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist > > > > that should have the correct extensions reguardless of what then ended up > > being. (changed or not) it builds the list after brp-compress has been run. > > i'm not sure how that could end up with invalid file names. i think something > > bigger is going on here. > > > > -rm > > _______________________________________________ > > gtk-perl-list mailing list > > gtk-perl-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-perl-list > > _______________________________________________ > gtk-perl-list mailing list > gtk-perl-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-perl-list From rwmcfa1@neces.com Wed Oct 20 20:29:51 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3BCDC3B1558 for ; Wed, 20 Oct 2004 20:29:51 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19376-05 for ; Wed, 20 Oct 2004 20:29:48 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id 206FA3B15E6 for ; Wed, 20 Oct 2004 20:29:32 -0400 (EDT) Received: from [192.168.1.45] (unknown [12.222.230.66]) by pippin.dreamhost.com (Postfix) with ESMTP id CD58D16D21E; Wed, 20 Oct 2004 17:29:30 -0700 (PDT) From: Ross McFarland To: Carl Nygard In-Reply-To: <1098303484.4671.180.camel@traveler> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> <1098296118.4671.152.camel@traveler> <36085.192.146.101.26.1098297929.spork@webmail.neces.com> <1098300090.4671.171.camel@traveler> <1098303484.4671.180.camel@traveler> Content-Type: text/plain Message-Id: <1098318569.2201.217.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 20 Oct 2004 20:29:29 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 00:29:51 -0000 On Wed, 2004-10-20 at 16:18, Carl Nygard wrote: > One more time... > > Now that I browsed through the /usr/lib/rpm/x86_64-linux/macros file, I > see the following definition: > > %__os_install_post \ > /usr/lib/rpm/brp-compress \ > /usr/lib/rpm/brp-strip \ > /usr/lib/rpm/brp-strip-static-archive \ > /usr/lib/rpm/brp-strip-comment-note \ > %{nil} > > This tell me where the brp-compress is coming from. It also indicates > that it's probably not so bad to hardcode the path to brp-compress, > since that's hardcoded in the ./rpm/-linux/macros file. > > So I propose the following patch instead: > > -[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress > +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress > > This seems to work on x86_64, and I'd assume it works on i386, since the > path is hardcoded in ./rpm/i[3456]86-linux/macros as well. have you looked at any of the spec files for working perl srpms on x68_64. i'm looking around for what other (official) fedora rpms are doing and found this: [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress looks familiar, huh? the same rpm is in their i386 and x86_64 dirs. i'm going to look around a bit more and see what else is different in there and then make the changes throughout our trees. i don't think these will be worth doing a set of rels for, but i might be talked into doing .2 rpms. > If you want me to generate real patches for all the spec.in files, I can > do that as well. But I'm betting they will all be the same boilerplate > fix. that shouldn't be necessary, but i want to be careful with whatever fix we end up doing. i want to do a bit more investigation before we go through and fix them all. -- -rm http://www.neces.com/ From rwmcfa1@neces.com Wed Oct 20 21:19:56 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5BD4F3B0ACC for ; Wed, 20 Oct 2004 21:19:56 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20865-03 for ; Wed, 20 Oct 2004 21:19:55 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id 30A853B0D2C for ; Wed, 20 Oct 2004 21:19:55 -0400 (EDT) Received: from [192.168.1.45] (unknown [12.222.230.66]) by pippin.dreamhost.com (Postfix) with ESMTP id 2E68116D207 for ; Wed, 20 Oct 2004 18:19:54 -0700 (PDT) From: Ross McFarland To: Gtk-Perl-List In-Reply-To: <1098318569.2201.217.camel@beta.local> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> <1098296118.4671.152.camel@traveler> <36085.192.146.101.26.1098297929.spork@webmail.neces.com> <1098300090.4671.171.camel@traveler> <1098303484.4671.180.camel@traveler> <1098318569.2201.217.camel@beta.local> Content-Type: multipart/mixed; boundary="=-KtrJULlLzHlZfRx9G+Np" Message-Id: <1098321593.2201.222.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 20 Oct 2004 21:19:53 -0400 X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 01:19:56 -0000 --=-KtrJULlLzHlZfRx9G+Np Content-Type: text/plain Content-Transfer-Encoding: 7bit On Wed, 2004-10-20 at 20:29, Ross McFarland wrote: > that shouldn't be necessary, but i want to be careful with whatever fix > we end up doing. i want to do a bit more investigation before we go > through and fix them all. attached patch is for Glib's spec file. similar changes probably ought to be made to all the spec files. look it over and comment etc... -- -rm http://www.neces.com/ --=-KtrJULlLzHlZfRx9G+Np Content-Disposition: attachment; filename=specs.patch Content-Type: text/x-patch; name=specs.patch; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Index: perl-Glib.spec.in =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/perl-Glib.spec.in,v retrieving revision 1.5 diff -u -r1.5 perl-Glib.spec.in --- perl-Glib.spec.in 25 Jan 2004 03:06:44 -0000 1.5 +++ perl-Glib.spec.in 21 Oct 2004 01:16:39 -0000 @@ -34,26 +34,27 @@ %install rm -rf $RPM_BUILD_ROOT -eval `perl '-V:installarchlib'` -mkdir -p $RPM_BUILD_ROOT$installarchlib -%makeinstall -rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist` - -[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress - -find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ - sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist -if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then +make install + +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; + +find $RPM_BUILD_ROOT/usr -type f -print | \ + sed "s@^$RPM_BUILD_ROOT@@g" | \ + grep -v perllocal.pod | \ + grep -v "\.packlist" > %{name}-%{version}-filelist +if [ "$(cat %{name}-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" - exit 1 + exit -1 fi +%files -f %{name}-%{version}-filelist +%defattr(-,root,root) + %clean rm -rf $RPM_BUILD_ROOT -%files -f %{name}-%{version}-%{release}-filelist -%defattr(-,root,root,-) - %changelog * @DATE@ gtk-perl-list@gnome.org - @VERSION@ - Specfile autogenerated. --=-KtrJULlLzHlZfRx9G+Np-- From dkasak@nusconsulting.com.au Wed Oct 20 21:27:09 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 94BDE3B0BDA for ; Wed, 20 Oct 2004 21:27:09 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21077-10 for ; Wed, 20 Oct 2004 21:27:08 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id CFF203B0BBE for ; Wed, 20 Oct 2004 21:26:59 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9L1RmIl029229 for ; Thu, 21 Oct 2004 11:27:52 +1000 Message-ID: <417710C3.8080105@nusconsulting.com.au> Date: Thu, 21 Oct 2004 11:28:35 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gtk-Perl-List Content-Type: multipart/mixed; boundary="----------=_1098322072-1149-99" X-Canit-Stats-ID: 119124 - 87e98673ec58 X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Problem with Gtk2::ComboBoxEntry X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 01:27:09 -0000 This is a multi-part message in MIME format... ------------=_1098322072-1149-99 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I *think* I've found a bug in gtk, but I'll check here first. If I select an option in a Gtk2::ComboBoxEntry either with the mouse or keyboard, I can successfully get it's value later, eg: my $iter = $widget->get_active_iter; my $value = $widget->get_model->get($iter, 0); However if I don't use the ComboBox functionality, and instead just use the Entry functionality, and type in something that matches *exactly* one of the options in the list, the above doesn't work. my $iter = $widget->get_active_iter; doesn't return anything. Can someone confirm that this is a gtk bug and not a gtk-perl bug? Thanks :) Dan -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1098322072-1149-99 Content-Type: text/html; name="CANIT-VOTING-LINKS-119124-87e98673ec58.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-119124-87e98673ec58.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 119124

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1098322072-1149-99-- From scott@asofyet.org Wed Oct 20 22:16:03 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 81FF13B081D for ; Wed, 20 Oct 2004 22:16:03 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22910-10 for ; Wed, 20 Oct 2004 22:16:02 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id E34F83B066B for ; Wed, 20 Oct 2004 22:16:01 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by pippin.dreamhost.com (Postfix) with ESMTP id 0F03716D209; Wed, 20 Oct 2004 19:16:01 -0700 (PDT) In-Reply-To: <417710C3.8080105@nusconsulting.com.au> References: <417710C3.8080105@nusconsulting.com.au> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2886683C-2307-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Wed, 20 Oct 2004 22:16:03 -0400 To: Daniel Kasak X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Problem with Gtk2::ComboBoxEntry X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 02:16:03 -0000 On Oct 20, 2004, at 9:28 PM, Daniel Kasak wrote: > Can someone confirm that this is a gtk bug and not a gtk-perl bug? i can't say whether it's a bug, but it is exactly how it is coded to behave. in gtk+/gtk/gtkcomboboxentry.c (http://cvs.gnome.org/viewcvs/gtk%2B/gtk/gtkcomboboxentry.c? rev=1.19&view=auto), the private function gtk_combo_box_entry_contents_changed, which is the handler for the "changed" signal on the entry (whenever you type something), calls gtk_combo_box_set_active (combo_box, -1). that is, if you type something in, the code assumes you have selected none of the above. there is no attempt to match the entry's contents against the text column of the list store. so, i think that if you logged this as a bug report in gtk+'s bugzilla, they'd be justified in marking it "NOTABUG", because it appears to be behaving as designed. instead, mark the bug report as a feature enhancement request. -- Walk softly, and carry a BFG-9000. -- unknown From cjnygard@fast.net Wed Oct 20 23:58:51 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 697E03B07AB for ; Wed, 20 Oct 2004 23:58:51 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26341-06 for ; Wed, 20 Oct 2004 23:58:50 -0400 (EDT) Received: from newmx3.fast.net (newmx3.fast.net [209.92.1.33]) by menubar.gnome.org (Postfix) with SMTP id 3CBE43B0D63 for ; Wed, 20 Oct 2004 23:58:50 -0400 (EDT) Received: (qmail 13269 invoked from network); 21 Oct 2004 03:58:49 -0000 Received: from unknown (HELO ?192.168.0.70?) ([209.60.97.106]) (envelope-sender ) by newmx3.fast.net (qmail-ldap-1.03) with SMTP for ; 21 Oct 2004 03:58:49 -0000 From: Carl Nygard To: Ross McFarland In-Reply-To: <1098321593.2201.222.camel@beta.local> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> <1098296118.4671.152.camel@traveler> <36085.192.146.101.26.1098297929.spork@webmail.neces.com> <1098300090.4671.171.camel@traveler> <1098303484.4671.180.camel@traveler> <1098318569.2201.217.camel@beta.local> <1098321593.2201.222.camel@beta.local> Content-Type: text/plain Message-Id: <1098331057.29006.2.camel@traveler> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Wed, 20 Oct 2004 23:57:38 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 03:58:51 -0000 On Wed, 2004-10-20 at 21:19, Ross McFarland wrote: > On Wed, 2004-10-20 at 20:29, Ross McFarland wrote: > > > that shouldn't be necessary, but i want to be careful with whatever fix > > we end up doing. i want to do a bit more investigation before we go > > through and fix them all. > > attached patch is for Glib's spec file. similar changes probably ought > to be made to all the spec files. look it over and comment etc... Worked for me, although I only tested the Glib build. Comment: Not sure why you substituted 'make install' for '%makeinstall'. The %makeinstall macro seems to allow rpm to change the buildroot. That's probably taken care of by the perl Makefile.PL... line, but... the rpm folks define it for a reason, right? Anyway, works for me on x86_64. Thanks. Regards, Carl From dkasak@nusconsulting.com.au Thu Oct 21 00:19:21 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 01F2F3B0664 for ; Thu, 21 Oct 2004 00:19:21 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27025-08 for ; Thu, 21 Oct 2004 00:19:18 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 7A2BB3B066B for ; Thu, 21 Oct 2004 00:19:17 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9L4KHIl009489; Thu, 21 Oct 2004 14:20:18 +1000 Message-ID: <41773930.1050501@nusconsulting.com.au> Date: Thu, 21 Oct 2004 14:21:04 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ross McFarland , Gtk-Perl-List References: <1098276449.2201.107.camel@beta.local> In-Reply-To: <1098276449.2201.107.camel@beta.local> Content-Type: multipart/mixed; boundary="----------=_1098332418-21089-19" X-Canit-Stats-ID: 119244 - ecb13fa87064 X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Cc: Subject: Re: Gtk2-Perl-Ex X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 04:19:21 -0000 This is a multi-part message in MIME format... ------------=_1098332418-21089-19 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Ross McFarland wrote: >apparently if sourceforge sent me an email (as they were supposed to) >that the project was accepted it was classified as junk-mail. i decided >to check for myself and went to my sf.net and it had been created: > >Gtk2-Perl-Ex: > http://sourceforge.net/projects/gtk2-perl-ex/ > >an initial release of Gtk2-Ex-Simple-(List|Tree|Menu) will be up there >within the next couple of days. i will also be working out how the whole >thing will be structured/work. if you have an Ex module and are >interested in joining this project (as a central place to promote them) >let me know. > > Yeah I'll add my Gtk2::Ex::DBI in there if there are no objections. -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1098332418-21089-19 Content-Type: text/html; name="CANIT-VOTING-LINKS-119244-ecb13fa87064.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-119244-ecb13fa87064.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 119244

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1098332418-21089-19-- From cwb@lim.nl Thu Oct 21 09:01:39 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1AD9A3B0EA7 for ; Thu, 21 Oct 2004 09:01:39 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16926-01 for ; Thu, 21 Oct 2004 09:01:37 -0400 (EDT) Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by menubar.gnome.org (Postfix) with ESMTP id 3125B3B0C8B for ; Thu, 21 Oct 2004 09:01:37 -0400 (EDT) Received: from cbrace.demon.nl ([212.238.218.165]:35982 helo=[10.0.0.14]) by post-23.mail.nl.demon.net with esmtp (Exim 4.34) id 1CKcZU-00016n-Mm for gtk-perl-list@gnome.org; Thu, 21 Oct 2004 13:01:36 +0000 Message-ID: <4177B352.6040303@lim.nl> Date: Thu, 21 Oct 2004 15:02:10 +0200 From: Colin Brace User-Agent: Mozilla Thunderbird 0.8 (X11/20040928) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: makefile.pl can't find GTK under FC3 test3 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 13:01:39 -0000 Hello all, I am trying to complile gtk-perl version 0.7009 under Fedora Core 3, test 3 without sucess. For some reason, Makefile.PL can't find GTK, which is of course installed on my system: [colin@guru1 Gtk-Perl-0.7009]$ perl Makefile.PL Can't exec "gtk-config": No such file or directory at Makefile.PL line 141. Package 'gtk' needed but it was not detected on your system. You may want to force it using --with-gtk-force if you know better than me. Anyone have any idea what is going on? -- Colin Brace Amsterdam http://www.lim.nl From scott@asofyet.org Thu Oct 21 09:25:45 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 079B83B16E6 for ; Thu, 21 Oct 2004 09:25:45 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18069-06 for ; Thu, 21 Oct 2004 09:25:42 -0400 (EDT) Received: from monkichi.sd.dreamhost.com (monkichi.sd.dreamhost.com [66.33.201.156]) by menubar.gnome.org (Postfix) with ESMTP id 858FE3B16C9 for ; Thu, 21 Oct 2004 09:25:42 -0400 (EDT) Received: from webmail.asofyet.org (localhost [127.0.0.1]) by monkichi.sd.dreamhost.com (Postfix) with SMTP id A4D659A24E for ; Thu, 21 Oct 2004 06:25:41 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user scott@asofyet.org) by webmail.asofyet.org with HTTP; Thu, 21 Oct 2004 09:25:41 -0400 (EDT) Message-ID: <64977.192.146.101.26.1098365141.spork@webmail.asofyet.org> In-Reply-To: <4177B352.6040303@lim.nl> References: <4177B352.6040303@lim.nl> Date: Thu, 21 Oct 2004 09:25:41 -0400 (EDT) From: "muppet" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: makefile.pl can't find GTK under FC3 test3 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 13:25:45 -0000 Colin Brace said: > I am trying to complile gtk-perl version 0.7009 under Fedora Core 3, > test 3 without sucess. For some reason, Makefile.PL can't find GTK, > which is of course installed on my system: you probably have gtk+ 2.x, yes, but gtk-perl wants gtk+ 1.x, which has been obsolete for three years now. if you want to write a program, please use gtk2-perl (http://gtk2-perl.sf.net). if you are trying to run an old program, please ask the author to port the program to gtk2-perl, and in the meantime, install the development packages for gtk+ 1.x. -- muppet From dkasak@nusconsulting.com.au Fri Oct 22 02:05:43 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1BC1D3B0C93 for ; Fri, 22 Oct 2004 02:05:43 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26527-05 for ; Fri, 22 Oct 2004 02:05:41 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 9DCC53B0C8F for ; Fri, 22 Oct 2004 02:04:43 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9M660Il015565 for ; Fri, 22 Oct 2004 16:06:00 +1000 Message-ID: <4178A371.1010604@nusconsulting.com.au> Date: Fri, 22 Oct 2004 16:06:41 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org Content-Type: multipart/mixed; boundary="----------=_1098425160-7121-106" X-Canit-Stats-ID: 119922 - a23cf92f63b3 X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Gtk2::CellRendererText ... one more time for the slow among us X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 06:05:43 -0000 This is a multi-part message in MIME format... ------------=_1098425160-7121-106 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I've been looking at http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/CellRendererText.html and mucking around with various $cell->set() lines for the past half hour, but can't figure out how to format a cell's text in bold. I've got colour sorted, and I can *kinda* change the font size ( I may return to this one later ... I'm getting unpredictable results ). But no bold. Any clues? Sorry. I've been trying, honest. -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1098425160-7121-106 Content-Type: text/html; name="CANIT-VOTING-LINKS-119922-a23cf92f63b3.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-119922-a23cf92f63b3.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 119922

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1098425160-7121-106-- From dan@enthalpy.homelinux.org Fri Oct 22 02:23:48 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2EB233B0C8F for ; Fri, 22 Oct 2004 02:23:48 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27171-08 for ; Fri, 22 Oct 2004 02:23:46 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 476AC3B0C93 for ; Fri, 22 Oct 2004 02:23:45 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9M6OtIl016137; Fri, 22 Oct 2004 16:24:55 +1000 Message-ID: <4178A7E0.7020704@enthalpy.homelinux.org> Date: Fri, 22 Oct 2004 16:25:36 +1000 From: Dan User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org, mysql@lists.mysql.com, dbi-users@perl.org Content-Type: multipart/mixed; boundary="----------=_1098426300-7121-119" X-Canit-Stats-ID: 119936 - 2eaa7666406e X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Cc: Subject: ANN: Gtk2::Ex::DBI-0.4 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 06:23:48 -0000 This is a multi-part message in MIME format... ------------=_1098426300-7121-119 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all. I'm pleased to announce the 4rd release of Gtk2::Ex::DBI ... http://enthalpy.homelinux.org/Gtk2-Ex-DBI/ Gtk2::Ex::DBI is a helper object that makes your gtk2-perl apps data aware. This is mainly a bugfix release ... the previous version was BADLY broken. Changes in this release: - Fixed 2 *nasty* bugs in apply method that were preventing the fieldlist from being processed and applied to DB Server or in-memory recordset - Added 'delete' method Dan ------------=_1098426300-7121-119 Content-Type: text/html; name="CANIT-VOTING-LINKS-119936-2eaa7666406e.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-119936-2eaa7666406e.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 119936

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1098426300-7121-119-- From dmitriyk@genphys.phys.msu.ru Fri Oct 22 02:24:45 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 488893B0DF2 for ; Fri, 22 Oct 2004 02:24:45 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27242-08 for ; Fri, 22 Oct 2004 02:24:43 -0400 (EDT) Received: from genphys.phys.msu.ru (genphys.phys.msu.ru [193.232.125.10]) by menubar.gnome.org (Postfix) with ESMTP id 1BF233B0DEB for ; Fri, 22 Oct 2004 02:24:42 -0400 (EDT) Received: from genphys.phys.msu.ru (mobile100 [10.0.0.6]) by genphys.phys.msu.ru (8.11.3/8.11.3) with ESMTP id i9M6Oap32908 for ; Fri, 22 Oct 2004 10:24:37 +0400 (MSD) (envelope-from dmitriyk@genphys.phys.msu.ru) Message-ID: <3F1F207B.8060303@genphys.phys.msu.ru> From: Dmitriy Kuvshinov User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.6) Gecko/20040331 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: gtk-perl-list@gnome.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: transparent layer over image X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Fri, 22 Oct 2004 06:24:45 -0000 X-Original-Date: Wed, 23 Jul 2003 23:55:39 +0000 X-List-Received-Date: Fri, 22 Oct 2004 06:24:45 -0000 Good day! I have a picture received by a method $pixbuf = Gtk2::Gdk::Pixbuf->new_from_file ($img); and show it. But I want from above a picture to draw a line, not changing thus contents of a variable $pixels = $pixbuf->get_pixels(); (like Color Snooper example script, but without mouse movement). How it can be made? How i can set transparent color on top of image widget for example "\x00\x00\x00" (the RGB colour pixel)? I can create and manipulate an images from my data with help function of pack(C*,$pix), where length of $pix is $w*$h*3 (for RGB). Where i can find example about it? Thanks! From dbi-users-return-24591-Richard.Foley=ubs.com@perl.org Fri Oct 22 03:55:22 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4C4C63B11DD for ; Fri, 22 Oct 2004 03:55:21 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30110-05 for ; Fri, 22 Oct 2004 03:55:19 -0400 (EDT) Received: from pluto.ubs.com (pluto.ubs.com [193.134.254.194]) by menubar.gnome.org (Postfix) with ESMTP id C6CCC3B0704 for ; Fri, 22 Oct 2004 03:55:18 -0400 (EDT) Received: by pluto.ubs.com (Postfix, from userid 2104) id 222BC20FFC; Fri, 22 Oct 2004 09:52:57 +0200 (MEST) Received: from lists.develooper.com (x6.develooper.com [63.251.223.186]) by pluto.ubs.com (Postfix) with SMTP id 4063F210DC for ; Fri, 22 Oct 2004 09:52:52 +0200 (MEST) Received: (qmail 2358 invoked by uid 514); 22 Oct 2004 07:52:23 -0000 Mailing-List: contact dbi-users-help@perl.org; run by ezmlm Precedence: bulk Delivered-To: mailing list dbi-users@perl.org Delivered-To: moderator for dbi-users@perl.org Received: (qmail 9312 invoked from network); 22 Oct 2004 06:24:06 -0000 Delivered-To: dbi-users@perl.org X-Spam-Check-By: la.mx.develooper.com Message-ID: <4178A7E0.7020704@enthalpy.homelinux.org> Date: Fri, 22 Oct 2004 16:25:36 +1000 From: Dan User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org, mysql@lists.mysql.com, dbi-users@perl.org Content-Type: multipart/mixed; boundary="----------=_1098426300-7121-119" X-Canit-Stats-ID: 119936 - 2eaa7666406e X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Cc: Subject: ANN: Gtk2::Ex::DBI-0.4 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 07:55:22 -0000 ------------=_1098426300-7121-119 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all. I'm pleased to announce the 4rd release of Gtk2::Ex::DBI ... http://enthalpy.homelinux.org/Gtk2-Ex-DBI/ Gtk2::Ex::DBI is a helper object that makes your gtk2-perl apps data aware. This is mainly a bugfix release ... the previous version was BADLY broken. Changes in this release: - Fixed 2 *nasty* bugs in apply method that were preventing the fieldlist from being processed and applied to DB Server or in-memory recordset - Added 'delete' method Dan ------------=_1098426300-7121-119-- From scott@asofyet.org Fri Oct 22 08:25:16 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9809F3B0D0B for ; Fri, 22 Oct 2004 08:25:16 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09080-02 for ; Fri, 22 Oct 2004 08:25:13 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id D25D93B0A94 for ; Fri, 22 Oct 2004 08:25:10 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by merry.dreamhost.com (Postfix) with ESMTP id B3A8517510E; Fri, 22 Oct 2004 05:25:08 -0700 (PDT) In-Reply-To: <4178A371.1010604@nusconsulting.com.au> References: <4178A371.1010604@nusconsulting.com.au> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6C7707AB-2425-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Fri, 22 Oct 2004 08:25:13 -0400 To: Daniel Kasak X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: Gtk2::CellRendererText ... one more time for the slow among us X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 12:25:16 -0000 On Oct 22, 2004, at 2:06 AM, Daniel Kasak wrote: > I've been looking at > http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/CellRendererText.html > and mucking around with various $cell->set() lines for the past half > hour, but can't figure out how to format a cell's text in bold. I've > got colour sorted, and I can *kinda* change the font size ( I may > return to this one later ... I'm getting unpredictable results ). But > no bold. use Gtk2::Pango; # get the PANGO_WEIGHT_* constants $cellrenderertext->set (weight => PANGO_WEIGHT_BOLD); "weight" is the boldness value; the PANGO_WEIGHT_* constants are predefined weight value in a number space. the "weight-set" property tells the renderer whether to use the value of the "weight" property -- that is, it controls whether the renderer uses the weight you set in. it appears that setting "weight" causes "weight-set" to be set to true, but you can use weight-set to turn bold on and off without having to set and unset the weight value. gtk-demo does this for the example list with italics rather than weight (Gtk2/gtk-demo/main.pl , look for "ITALIC_COLUMN"). -- Examples really shouldn't include unexploded ordnance. -- Joe Smith, referring to an example program i wrote. From joern@zyn.de Sat Oct 23 05:52:14 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 08E863B09C4 for ; Sat, 23 Oct 2004 05:52:14 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22722-06 for ; Sat, 23 Oct 2004 05:52:11 -0400 (EDT) Received: from fries.zyn.de (fries.zyn.de [213.239.201.88]) by menubar.gnome.org (Postfix) with ESMTP id 580333B07D7 for ; Sat, 23 Oct 2004 05:52:10 -0400 (EDT) Received: from prison.castle (IDENT:itsme@pD9E3F91C.dip.t-dialin.net [217.227.249.28]) by fries.zyn.de (8.12.3/8.12.3/Debian-7.1) with ESMTP id i9N9q9PX012627 for ; Sat, 23 Oct 2004 11:52:09 +0200 Received: from wizard.castle ([192.168.42.66]) by prison.castle with esmtp (Exim 3.35 #1 (Debian)) id 1CLIZE-0000IJ-00 for ; Sat, 23 Oct 2004 11:52:08 +0200 MIME-Version: 1.0 Message-Id: <20041023115208.10024SwNvQw497@wizard.castle> X-Mailer: - To: Gtk Perl List From: =?ISO-8859-15?Q?J=F6rn?= Reder Date: Sat, 23 Oct 2004 11:52:08 +0200 Content-Type: multipart/signed; boundary="----------=_1098525128-10007-15"; micalg="pgp-ripemd160"; protocol="application/pgp-signature" X-Virus-Scanned: by amavisd-new at gnome.org Subject: Namespace request: Gtk2::Ex::FormFactory X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Oct 2004 09:52:14 -0000 This is a multi-part message in MIME format... ------------=_1098525128-10007-15 Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hiho, I like to request the following namespace for an extension I'm working=20 on: Gtk2::Ex::FormFactory This is a framework which tries to make building complex GUI's easy, by offering these two main features: * Consistent looking GUI without the need to code resp. tune each widget by hand. Instead you declare the structure of your GUI, connect it to the data of your program (which should be a well defined set of objects) and control how this structure is transformed into a specific layout in a very generic way. * Automatically keep widget and object states in sync (in both directions), even with complex data structures with a lot of internal dependencies, object nesting etc. It differs significantly from the Gtk::Ex::Simple* style modules,=20 Gtk2::Ex::FormFactory has a more abstract and object oriented definition of data and its representation on the GUI. I'm preparing a more detailed RFC, but at first I like to know if there are any objections against the namespace. Regards, Joern --=20 LINUX - Linux Is Not gnU linuX ------------=_1098525128-10007-15 Content-Type: application/pgp-signature Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBeinI2hNi0Chc9HMRA52zAKCshaFO51+8PEHnw+wlyVMDN0eQnACgkOEv zwVSkrySK9NYpZHecp7OKh8= =KVE3 -----END PGP SIGNATURE----- ------------=_1098525128-10007-15-- From rwmcfa1@neces.com Sat Oct 23 08:05:21 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7B7773B0C40 for ; Sat, 23 Oct 2004 08:05:21 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27702-04 for ; Sat, 23 Oct 2004 08:05:17 -0400 (EDT) Received: from kitty.sd.dreamhost.com (kitty.sd.dreamhost.com [66.33.201.155]) by menubar.gnome.org (Postfix) with ESMTP id 2A3C93B0AD8 for ; Sat, 23 Oct 2004 08:05:17 -0400 (EDT) Received: from webmail.neces.com (localhost [127.0.0.1]) by kitty.sd.dreamhost.com (Postfix) with SMTP id 7323C3EE9 for ; Sat, 23 Oct 2004 05:05:16 -0700 (PDT) Received: from 67.140.167.19 (SquirrelMail authenticated user rwmcfa1@neces.com) by webmail.neces.com with HTTP; Sat, 23 Oct 2004 08:05:16 -0400 (EDT) Message-ID: <1071.67.140.167.19.1098533116.spork@webmail.neces.com> In-Reply-To: <20041023115208.10024SwNvQw497@wizard.castle> References: <20041023115208.10024SwNvQw497@wizard.castle> Date: Sat, 23 Oct 2004 08:05:16 -0400 (EDT) From: "Ross McFarland" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Namespace request: Gtk2::Ex::FormFactory X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Oct 2004 12:05:21 -0000 Jörn Reder said: > > Hiho, > > I like to request the following namespace for an extension I'm working > on: > > Gtk2::Ex::FormFactory no objections from me anyway. sounds like an appropriate name and all. -rm From oger@sgsi.ucl.ac.be Sun Oct 24 06:24:36 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AC3913B0FCD for ; Sun, 24 Oct 2004 06:24:36 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11273-09 for ; Sun, 24 Oct 2004 06:24:34 -0400 (EDT) Received: from spoolo3.tiscali.be (spoolo3.tiscali.be [62.235.13.169]) by menubar.gnome.org (Postfix) with ESMTP id F12F23B0FF9 for ; Sun, 24 Oct 2004 06:24:33 -0400 (EDT) Received: from [83.134.200.162] (helo=83-134-200-162.Namur.GoPlus.FastDSL.tiscali.be) by spoolo3.tiscali.be with esmtp (Tiscali.be http://www.tiscali.be) id 1CLfY9-0006rR-2t for ; Sun, 24 Oct 2004 12:24:33 +0200 From: "Fred. Oger" To: Gtk Perl List Content-Type: text/plain Message-Id: <1098613479.7129.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 24 Oct 2004 12:24:39 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Mailman-Approved-At: Sun, 24 Oct 2004 09:19:30 -0400 Subject: Simple SpinButton question X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2004 10:24:36 -0000 Hi all, Is there any way to have dotted decimal values in a Gtk2::SpinButton in place of comma separated decimals ? Is this related to locales ? Regards, Fred. Oger From rwmcfa1@neces.com Sun Oct 24 09:23:28 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9E6D33B1010 for ; Sun, 24 Oct 2004 09:23:28 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18044-04 for ; Sun, 24 Oct 2004 09:23:25 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id 669A03B101F for ; Sun, 24 Oct 2004 09:23:25 -0400 (EDT) Received: from [192.168.1.45] (12-222-230-66.client.insightBB.com [12.222.230.66]) by merry.dreamhost.com (Postfix) with ESMTP id B46B5175108; Sun, 24 Oct 2004 06:23:23 -0700 (PDT) From: Ross McFarland To: "Fred. Oger" In-Reply-To: <1098613479.7129.1.camel@localhost.localdomain> References: <1098613479.7129.1.camel@localhost.localdomain> Content-Type: text/plain Message-Id: <1098624202.2201.234.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sun, 24 Oct 2004 09:23:22 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk Perl List Subject: Re: Simple SpinButton question X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2004 13:23:28 -0000 On Sun, 2004-10-24 at 06:24, Fred. Oger wrote: > Hi all, > > Is there any way to have dotted decimal values in a Gtk2::SpinButton in > place of comma separated decimals ? Is this related to locales ? i'm pretty sure that's all controlled by the locale. -- -rm http://www.neces.com/ From scott@asofyet.org Sun Oct 24 10:41:39 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 44FB83B06E6 for ; Sun, 24 Oct 2004 10:41:39 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20537-09 for ; Sun, 24 Oct 2004 10:41:35 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id A2C923B0946 for ; Sun, 24 Oct 2004 10:41:35 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by smeagol.dreamhost.com (Postfix) with ESMTP id 7CF70238D4; Sun, 24 Oct 2004 07:41:34 -0700 (PDT) In-Reply-To: <3F1F207B.8060303@genphys.phys.msu.ru> References: <3F1F207B.8060303@genphys.phys.msu.ru> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: muppet Date: Sun, 24 Oct 2004 10:41:39 -0400 To: Dmitriy Kuvshinov X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: transparent layer over image X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2004 14:41:39 -0000 (something tells me that this dateline is, erm, wrong) On Jul 23, 2003, at 7:55 PM, Dmitriy Kuvshinov wrote: > But I want from above a picture to draw a line, not changing > thus contents of a variable $pixels = $pixbuf->get_pixels(); > (like Color Snooper example script, but without mouse movement). > > How it can be made? > > How i can set transparent color on top of image widget for > example "\x00\x00\x00" (the RGB colour pixel)? i'm not sure what you're asking, actually. are you wanting to draw annotations on the image without altering the pixbuf's data? you can either use Gdk drawing primitives to draw directly on the screen after drawing the image (which can be a pain to keep up), or use Gnome2::Canvas for structured graphics. otherwise, you can just alter the image data, keeping a pristine copy separate from the annotated one. -- "it's hard to be eventful when you have this much style." - me, rationalizing yet another night of sitting at home. From rwmcfa1@neces.com Sun Oct 24 12:27:05 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B4C2C3B0DC7 for ; Sun, 24 Oct 2004 12:27:05 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24875-04 for ; Sun, 24 Oct 2004 12:27:04 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id 92A203B0697 for ; Sun, 24 Oct 2004 12:27:04 -0400 (EDT) Received: from [192.168.1.45] (12-222-230-66.client.insightBB.com [12.222.230.66]) by merry.dreamhost.com (Postfix) with ESMTP id AA2E817513D; Sun, 24 Oct 2004 09:27:01 -0700 (PDT) From: Ross McFarland To: Carl Nygard In-Reply-To: <1098331057.29006.2.camel@traveler> References: <1098219388.4671.67.camel@traveler> <1098276246.2201.102.camel@beta.local> <1098296118.4671.152.camel@traveler> <36085.192.146.101.26.1098297929.spork@webmail.neces.com> <1098300090.4671.171.camel@traveler> <1098303484.4671.180.camel@traveler> <1098318569.2201.217.camel@beta.local> <1098321593.2201.222.camel@beta.local> <1098331057.29006.2.camel@traveler> Content-Type: text/plain Message-Id: <1098635222.2201.237.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sun, 24 Oct 2004 12:27:02 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: src.rpm for x86_64 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2004 16:27:05 -0000 On Wed, 2004-10-20 at 23:57, Carl Nygard wrote: > On Wed, 2004-10-20 at 21:19, Ross McFarland wrote: > > On Wed, 2004-10-20 at 20:29, Ross McFarland wrote: > > > > > that shouldn't be necessary, but i want to be careful with whatever fix > > > we end up doing. i want to do a bit more investigation before we go > > > through and fix them all. > > > > attached patch is for Glib's spec file. similar changes probably ought > > to be made to all the spec files. look it over and comment etc... > > Worked for me, although I only tested the Glib build. > > Comment: Not sure why you substituted 'make install' for > '%makeinstall'. The %makeinstall macro seems to allow rpm to change the > buildroot. That's probably taken care of by the perl Makefile.PL... > line, but... the rpm folks define it for a reason, right? > > Anyway, works for me on x86_64. Thanks. just went through and made the changes for all modules in HEAD. any future releases from head should build rpms with x86_64. (and anything with similar problems.) -- -rm http://www.neces.com/ From kckrinke@opendoorsoftware.com Sun Oct 24 17:21:06 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CFD723B105D for ; Sun, 24 Oct 2004 17:21:06 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02873-05 for ; Sun, 24 Oct 2004 17:21:04 -0400 (EDT) Received: from tomts13-srv.bellnexxia.net (tomts13-srv.bellnexxia.net [209.226.175.34]) by menubar.gnome.org (Postfix) with ESMTP id 8B4843B0B57 for ; Sun, 24 Oct 2004 17:21:04 -0400 (EDT) Received: from [192.168.0.26] ([69.158.96.90]) by tomts13-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20041024212103.CYOF4905.tomts13-srv.bellnexxia.net@[192.168.0.26]> for ; Sun, 24 Oct 2004 17:21:03 -0400 From: "Kevin C. Krinke" To: Gtk-Perl-List Content-Type: text/plain Organization: Open Door Software Inc. Date: Sun, 24 Oct 2004 17:20:57 -0400 Message-Id: <1098652857.3949.48.camel@onest8> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Glade dialogs X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2004 21:21:07 -0000 Hi all, I'm having some issues working with dialogs created from Glade files. What the problem is that when I create the dialog the first time everything works as expect, however the next time the dialog is used it causes a segfault. So my question then is, what is the proper way to close a dialog (destroy? hide? something else?) so that I can reuse the same dialog again? -- Kevin C. Krinke Open Door Software Inc. From rwmcfa1@neces.com Sun Oct 24 17:57:23 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E8E623B0ED2 for ; Sun, 24 Oct 2004 17:57:22 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04456-03 for ; Sun, 24 Oct 2004 17:57:21 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id B5EA23B0C14 for ; Sun, 24 Oct 2004 17:57:20 -0400 (EDT) Received: from [192.168.1.45] (12-222-230-66.client.insightBB.com [12.222.230.66]) by pippin.dreamhost.com (Postfix) with ESMTP id 91BED16D203; Sun, 24 Oct 2004 14:57:19 -0700 (PDT) From: Ross McFarland To: "Kevin C. Krinke" In-Reply-To: <1098652857.3949.48.camel@onest8> References: <1098652857.3949.48.camel@onest8> Content-Type: text/plain Message-Id: <1098655037.2201.242.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sun, 24 Oct 2004 17:57:17 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Glade dialogs X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2004 21:57:23 -0000 On Sun, 2004-10-24 at 17:20, Kevin C. Krinke wrote: > Hi all, > > I'm having some issues working with dialogs created from Glade files. > What the problem is that when I create the dialog the first time > everything works as expect, however the next time the dialog is used it > causes a segfault. > > So my question then is, what is the proper way to close a dialog > (destroy? hide? something else?) so that I can reuse the same dialog > again? so as you've now seen glade creates the widgets once (when you load the glade data) and when you ask for the widget it just keeps giving you the same one. in your case you've probably destroyed it so it's no longer a valid widget, but glade doesn't know that. the solution is to hide the dialog rather than destroy it. then when you grab and show it again it will still exist for your use. the downside is that any information entered into said dialog (the state) will remain. so that's one thing to take into consideration. -- -rm http://www.neces.com/ From pagaltzis@gmx.de Sun Oct 24 21:31:30 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AEED13B0C6E for ; Sun, 24 Oct 2004 21:31:30 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11713-03 for ; Sun, 24 Oct 2004 21:31:28 -0400 (EDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id CDEF53B0B8B for ; Sun, 24 Oct 2004 21:31:27 -0400 (EDT) Received: (qmail 18564 invoked by uid 65534); 25 Oct 2004 01:31:27 -0000 Received: from xdsl-81-173-179-121.netcologne.de (EHLO klangraum) (81.173.179.121) by mail.gmx.net (mp023) with SMTP; 25 Oct 2004 03:31:27 +0200 X-Authenticated: #163624 Date: Mon, 25 Oct 2004 03:31:26 +0200 From: "A. Pagaltzis" To: Gtk-Perl-List Message-ID: <20041025013126.GA11497@klangraum> Mail-Followup-To: Gtk-Perl-List References: <1098652857.3949.48.camel@onest8> <1098655037.2201.242.camel@beta.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1098655037.2201.242.camel@beta.local> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Glade dialogs X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 01:31:30 -0000 * Ross McFarland [2004-10-24 23:58]: > so as you've now seen glade creates the widgets once (when you > load the glade data) and when you ask for the widget it just > keeps giving you the same one. Without having done any homework myself, out of idle curiosity: is there any way to change this behaviour? Regards, -- Aristotle "Like punning, programming is a play on words." -- Alan J. Perlis, "Epigrams in Programming" From rwmcfa1@neces.com Sun Oct 24 21:53:08 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EF9B63B1066 for ; Sun, 24 Oct 2004 21:53:07 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12523-10 for ; Sun, 24 Oct 2004 21:53:06 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id B98BF3B0FB7 for ; Sun, 24 Oct 2004 21:53:06 -0400 (EDT) Received: from [192.168.1.45] (12-222-230-66.client.insightBB.com [12.222.230.66]) by merry.dreamhost.com (Postfix) with ESMTP id CB5EC175155 for ; Sun, 24 Oct 2004 18:53:04 -0700 (PDT) From: Ross McFarland To: Gtk-Perl-List In-Reply-To: <20041025013126.GA11497@klangraum> References: <1098652857.3949.48.camel@onest8> <1098655037.2201.242.camel@beta.local> <20041025013126.GA11497@klangraum> Content-Type: text/plain Message-Id: <1098669184.2201.247.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sun, 24 Oct 2004 21:53:04 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Glade dialogs X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 01:53:08 -0000 On Sun, 2004-10-24 at 21:31, A. Pagaltzis wrote: > * Ross McFarland [2004-10-24 23:58]: > > so as you've now seen glade creates the widgets once (when you > > load the glade data) and when you ask for the widget it just > > keeps giving you the same one. > > Without having done any homework myself, out of idle curiosity: > is there any way to change this behaviour? not really. it's a side effect of the way that gladexml works. it puts all of the widgets the xml specifies into a hash and then when you get them out it just looks up the widget you want in the hash table (why you can't have duplicate names without problems.) if you destroy that widget then there's an invalid entry in that hash table. i suppose you could hook a destroy signal handler in to remove the widget from the hash table and them maybe in some really hacky way recreate it the second time around (when it's not in the hash anymore, but that sounds like a really really bad idea and would require substantial changes to gladexml which is pretty stable. not the least of which would be keeping all of the glade data in memory after you were done with it. the workaround is either to reload the gladexml data each time you go to use the dialog or to do as i mentioned before, just hide the widget. -- -rm http://www.neces.com/ From pagaltzis@gmx.de Sun Oct 24 21:56:43 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 968E23B0BED for ; Sun, 24 Oct 2004 21:56:42 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12816-07 for ; Sun, 24 Oct 2004 21:56:40 -0400 (EDT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id CE11F3B0B34 for ; Sun, 24 Oct 2004 21:56:36 -0400 (EDT) Received: (qmail 4398 invoked by uid 65534); 25 Oct 2004 01:56:35 -0000 Received: from xdsl-81-173-179-121.netcologne.de (EHLO klangraum) (81.173.179.121) by mail.gmx.net (mp012) with SMTP; 25 Oct 2004 03:56:35 +0200 X-Authenticated: #163624 Date: Mon, 25 Oct 2004 03:56:35 +0200 From: "A. Pagaltzis" To: Gtk-Perl-List Message-ID: <20041025015635.GA11684@klangraum> Mail-Followup-To: Gtk-Perl-List References: <1098652857.3949.48.camel@onest8> <1098655037.2201.242.camel@beta.local> <20041025013126.GA11497@klangraum> <1098669184.2201.247.camel@beta.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1098669184.2201.247.camel@beta.local> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Glade dialogs X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 01:56:43 -0000 * Ross McFarland [2004-10-25 03:54]: > the workaround is either to reload the gladexml data each time > you go to use the dialog or to do as i mentioned before, just > hide the widget. Yeah, I know. It's just that that requires code to reset the dialog. I wonder if that can be swapped out to Glade somehow.. Regards, -- Aristotle @j = ((qw)" Just " )), @a = ((qw " another" )), @p = ((qw " Perl " )), @h = ((qw " hacker " )), (()),),(s""@j,",s (" )))g), print From scott@asofyet.org Sun Oct 24 23:44:10 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A74153B0FC5 for ; Sun, 24 Oct 2004 23:44:10 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16337-01 for ; Sun, 24 Oct 2004 23:44:08 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id 0FC103B1022 for ; Sun, 24 Oct 2004 23:44:08 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by smeagol.dreamhost.com (Postfix) with ESMTP id 01EDC238CE for ; Sun, 24 Oct 2004 20:44:06 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <20041025015635.GA11684@klangraum> References: <1098652857.3949.48.camel@onest8> <1098655037.2201.242.camel@beta.local> <20041025013126.GA11497@klangraum> <1098669184.2201.247.camel@beta.local> <20041025015635.GA11684@klangraum> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2178423A-2638-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Sun, 24 Oct 2004 23:44:10 -0400 To: Gtk-Perl-List X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Glade dialogs X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 03:44:10 -0000 On Oct 24, 2004, at 9:56 PM, A. Pagaltzis wrote: > * Ross McFarland [2004-10-25 03:54]: >> the workaround is either to reload the gladexml data each time you go >> to use the dialog or to do as i mentioned before, just hide the >> widget. > > Yeah, I know. It's just that that requires code to reset the dialog. I > wonder if that can be swapped out to Glade somehow.. interestingly enough, i've found myself more than once writing code to reinitialize a dialog with the same values the user entered the last time the dialog was up (for which just using hide() is really handy). it can be a very useful usability trick in certain circumstances, for example, where the next thing you enter is likely to be only slightly different from the previous thing. -- The door is locked. I tried to open it, but the lock is harder to pick than a broken nose. -- Sensei, on 'I, Ninja' From dmitriyk@genphys.phys.msu.ru Mon Oct 25 06:55:48 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA6923B09C0 for ; Mon, 25 Oct 2004 06:55:48 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30616-04 for ; Mon, 25 Oct 2004 06:55:46 -0400 (EDT) Received: from observ.inetcomm.ru (observ.inetcomm.ru [212.152.36.162]) by menubar.gnome.org (Postfix) with ESMTP id 4F62C3B0B73 for ; Mon, 25 Oct 2004 06:55:45 -0400 (EDT) Received: from genphys.phys.msu.ru (observ.inetcomm.ru [212.152.36.162]) by observ.inetcomm.ru (8.12.8/8.12.8) with ESMTP id i9PAtbx8025880; Mon, 25 Oct 2004 10:55:38 GMT Message-ID: <417CDBA9.3070109@genphys.phys.msu.ru> Date: Mon, 25 Oct 2004 10:55:37 +0000 From: dmitriy kuvshinov User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.6) Gecko/20040119 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: muppet References: <3F1F207B.8060303@genphys.phys.msu.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: transparent layer over image X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 10:55:48 -0000 Hi! > (something tells me that this dateline is, erm, wrong) yes, i use overclocking athlon xp2100+ (and i have some errors in BIOS, like bad data, bad HDD, etc.)... > i'm not sure what you're asking, actually. > are you wanting to draw annotations on the image without altering the > pixbuf's data? > you can either use Gdk drawing primitives to draw directly on the > screen after drawing the image (which can be a pain to keep up), or > use Gnome2::Canvas for structured graphics. > otherwise, you can just alter the image data, keeping a pristine copy > separate from the annotated one. > > -- > "it's hard to be eventful when you have this much style." > - me, rationalizing yet another night of sitting at home. I want to make the gauge of overcast (then to lay out the gauge under GPL the license). I have already made all calculations and have collected as *.xs the module. But to supervise as it works, I need to display somehow intensity of points as the schedule atop of a picture, it is very convenient, rather than than to examine figures. Speed of work for a picture c with the sanction 768x576 about 3 staff in a second on athlon-xp 2100 +. I can draw a vertical line in each picture thus: #!/usr/bin/perl use strict; use warnings; use Glib qw(FALSE TRUE); use Gtk2 -init; my(@a,@res,$pix,$button,@m,$img,$pixbuf,$pixels,$w,$h,$c); my $window = Gtk2::Window->new ( "toplevel" ); my $hbox = Gtk2::HBox->new (1,1); my $vbox = Gtk2::VBox->new (0,1); my $image = Gtk2::Image->new; # read directory with images &images(); sub render_image{ # die "Usage: $0 imagefile\n" unless @ARGV; $img=$ARGV[0] if $ARGV[0]; $img=$_[0] if $_[0]; $pixbuf = Gtk2::Gdk::Pixbuf->new_from_file ($img); $pixels = $pixbuf->get_pixels(); $h = $pixbuf->get_height; $w = $pixbuf->get_width; $pix=$pixels; $pix=~s!.(.).!$1!gs; # begin split image data from packed variable $pix. @a = @{[unpack "C*",$pix]}; push @res, [splice(@a, 0, $w)] while @a; # @res is a massive, with pixel data for one canal (R,G, or B or C,M,Y or K) map { my @txt; # print $c,"\n"; my $txt=join(' ', @{$_}); my $t1; # first version of program akf for clouds conditions # this return massive of points with coordinates, # needed for control my algoritm. $t1=qx[./akf $txt] if $c++%40==0; # print $t1 if $t1; } @res; $#a=-1; # begin draw vertical line my $t=pack "C*","255"; $t.=pack "C*","255";$t.=pack "C*","255"; $c=1; $pixels=~s/(...)/$c++%$w*3-90==0?$t:$1/gex; # end draw vertical line $pixbuf = Gtk2::Gdk::Pixbuf->new_from_data ($pixels, # packed image data in a scalar 'rgb', # only 24- or 32-bit RGB are supported 0, # no alpha, data is 24-bit 8, # only 8 bits per sample are supported $w, # in pixels $h, # in pixels $w*3); # number of *bytes* in each row $image->set_from_pixbuf ($pixbuf); $window->set_title("imaging $img"); #sleep 1; $img=''; $#res=-1; } $window->add($hbox); $hbox->add($vbox); $vbox->add($image); $button = Gtk2::Button->new("Begin repaint..."); $button->signal_connect("clicked", \&signal); $vbox->pack_start($button, 1, 1, 5); $window->signal_connect( "destroy" , sub { Gtk2->main_quit ; } ) ; $window->signal_connect (delete_event => sub {Gtk2->main_quit;}); $window->show_all(); eval { # this will block for 1000 milliseconds, until the timeout # callback dies. Gtk2->main; # print "nor should this be reached\n"; }; #Gtk2->main; # Shouldn't ever get here exit(0); sub signal { if ($m[$#m]){&render_image($m[$#m])}else {exit 0}; pop @m; Glib::Timeout->add (100, sub { # this next statement calls g_signal_emit under the hood $button->clicked; # print "this line should not be reached\n"; 0}); } sub images{ # read image directory while (){ $m[$c++]=$_; } reverse @m; } this program read and show pics from directory /home/vilfred/files/ and show in one by one while -f $m[$i]. But it is difficult for me to draw an any line atop of a picture, it is many calculations for a variable $pixels. It seems to me, that the program will draw faster atop of a picture not touching a variable $pixels Dmitriy. p.s. i'm very sorry for my bad english. From bmcandrews@efs-us.com Mon Oct 25 08:02:01 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 91E993B11B6 for ; Mon, 25 Oct 2004 08:02:01 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00808-05 for ; Mon, 25 Oct 2004 08:01:59 -0400 (EDT) Received: from igw1.efs-us.com (mail.archelon-us.com [208.48.30.132]) by menubar.gnome.org (Postfix) with ESMTP id 895B53B1174 for ; Mon, 25 Oct 2004 08:01:16 -0400 (EDT) Received: from lb1.archelon-us.com (lb1.archelon-us.com [192.92.2.75]) by igw1.efs-us.com (Postfix) with ESMTP id 9C49328C28A for ; Mon, 25 Oct 2004 07:01:15 -0500 (CDT) From: B McAndrews To: gtk-perl mailing list Content-Type: text/plain Organization: Message-Id: <1098705675.22249.22.camel@lb1> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 25 Oct 2004 07:01:15 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: ComboBox with multiple cellrenderers X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 12:02:02 -0000 I have played with muppet's cellrenderprogress custom renderer. When I go to display the combo list, I get these messages, the list still gets rendered but performance on this thing is pretty poor. I've attached the program if anyone wants to see it. My question is why isn't the GtkCellView type recognized? Thanks Brian GType 'GtkCellView' is not registered with GPerl; representing this object as first known parent type 'GtkWidget' instead at cellrenderer_combo.pl line 202. GType 'GtkCellView' is not registered with GPerl; representing this object as first known parent type 'GtkWidget' instead at cellrenderer_combo.pl line 204. GType 'GtkCellView' is not registered with GPerl; representing this object as first known parent type 'GtkWidget' instead at cellrenderer_combo.pl line 204. GType 'GtkCellView' is not registered with GPerl; representing this object as first known parent type 'GtkWidget' instead at cellrenderer_combo.pl line 204. GType 'GtkCellView' is not registered with GPerl; representing this object as first known parent type 'GtkWidget' instead at cellrenderer_combo.pl line 204. # ported from Tim-Philipp Meuller's Tree View tutorial, # http://scentric.net/tutorial/sec-custom-cell-renderers.html#sec-custom-cell-renderer-example-body # by muppet, 6 feb 04. # # This is based mainly on GtkCellRendererProgress # in GAIM, written and (c) 2002 by Sean Egan # (Licensed under the GPL), which in turn is # based on Gtk's GtkCellRenderer[Text|Toggle|Pixbuf] # implementation by Jonathan Blandford */ package Mup::CellRendererProgress; use strict; use warnings; use Glib qw(G_PARAM_READWRITE); use Gtk2; use Glib::Object::Subclass Gtk2::CellRenderer::, properties => [ Glib::ParamSpec->double ('percentage', 'Percentage', 'The fractional progress to display', 0.0, 1.0, 0.0, G_PARAM_READWRITE), ], ; sub INIT_INSTANCE { my $self = shift; $self->set (mode => 'inert', xpad => 0, ypad => 0); $self->{percentage} = 0.0; } # we'll use the default new, GET_PROPERTY and SET_PROPERTY provided by # Glib::Object::Subclass. # # calculate the size of our cell, taking into account padding and # alignment properties of parent. # use constant FIXED_WIDTH => 100; use constant FIXED_HEIGHT => 10; use constant RED => Gtk2::Gdk::Color->new(0xFFFF,0x0,0x0); use constant GREEN => Gtk2::Gdk::Color->new(0x0,0xFFFF,0x0); sub MAX { $_[0] > $_[1] ? $_[0] : $_[1] } sub GET_SIZE { my ($cell, $widget, $cell_area) = @_; my ($x_offset, $y_offset) = (0, 0); my $width = int ($cell->get ('xpad') * 2 + FIXED_WIDTH); my $height = int ($cell->get ('ypad') * 2 + FIXED_HEIGHT); if ($cell_area) { $width = int ($cell->get ('xpad') * 2 + $cell_area->width); $height = int ($cell->get ('ypad') * 2 + $cell_area->height); $x_offset = $cell->get ('xalign') * ($cell_area->width - $width); $x_offset = MAX ($x_offset, 0); $y_offset = $cell->get ('yalign') * ($cell_area->height - $height); $y_offset = MAX ($y_offset, 0); } return ($x_offset, $y_offset, $width, $height); } sub RENDER { my ($cell, $window, $widget, $background_area, $cell_area, $expose_area, $flags) = @_; my $defcolor = $widget->style->base('selected'); my ($x_offset, $y_offset, $width, $height) = $cell->GET_SIZE ($widget, $cell_area); my $state = $widget->has_focus ? 'active' : 'normal'; my ($xpad, $ypad) = $cell->get (qw(xpad ypad)); $width -= $xpad*2; $height -= $ypad*2; my $plainstyle = $widget->get_modifier_style->copy; $cell->set('cell_background_set' => 'grey'); $widget->style->paint_box ($window, $state, 'out', undef, $widget, "flatbar", $background_area->x, $background_area->y , $background_area->width, $background_area->height); $widget->style->paint_box ($window, 'normal', 'in', undef, $widget, "trough", $cell_area->x + $x_offset + $xpad, $cell_area->y + $y_offset + $ypad, $width-1, $height-1 ); $widget->modify_bg($state, RED); $widget->style->paint_box ($window, $state, 'out', undef, $widget, "bar", $cell_area->x + $x_offset + $xpad, $cell_area->y + $y_offset + $ypad, $width * $cell->{percentage}, $height-1); $widget->modify_style($plainstyle); } package main; use strict; use Glib qw(TRUE FALSE); use Gtk2 -init; my $liststore; my @increasing = (TRUE,TRUE,FALSE,TRUE); # direction of progress bar change use constant { COL_PERCENTAGE => 0, COL_TEXT => 1, NUM_COLS => 2, STEP => 0.01, }; sub increase_progress_timeout { my $renderer = shift; my $iter = $liststore->get_iter_first; # first and only row my $idx=0; while (defined($iter)) { my $perc = $liststore->get ($iter, COL_PERCENTAGE); if ($perc > (1.0 - STEP) || ($perc < STEP && $perc > 0.0) ) { $increasing[$idx] = (!$increasing[$idx]); } if ($increasing[$idx]) { $perc += STEP; } else { $perc -= STEP; } my $buf = sprintf '%u %%', $perc*100; $liststore->set ($iter, COL_PERCENTAGE, $perc, COL_TEXT, $buf); $iter = $liststore->iter_next($iter); ++$idx; } return TRUE; # Call again } sub create_view_and_model { $liststore = Gtk2::ListStore->new (qw(Glib::Double Glib::String)); $liststore->set ($liststore->append, COL_PERCENTAGE, 0.5); # start at 50% $liststore->set ($liststore->append, COL_PERCENTAGE, 0.2); # start at 20% $liststore->set ($liststore->append, COL_PERCENTAGE, 0.75); # start at 75% $liststore->set ($liststore->append, COL_PERCENTAGE, 1.0); # start at 100% my $view = Gtk2::ComboBox->new($liststore); my $renderer = Gtk2::CellRendererText->new; my $view_alloc = $view->allocation; $view->pack_start ($renderer, TRUE); $view->add_attribute($renderer, text => COL_TEXT); $renderer = Mup::CellRendererProgress->new; $view->pack_start ($renderer, TRUE); $view->add_attribute ($renderer, percentage => COL_PERCENTAGE); $renderer->set_property(cell_background_set => 'grey'); Glib::Timeout->add (50, \&increase_progress_timeout,$view); return $view; } my $window = Gtk2::Window->new; $window->set_default_size (150, 100); $window->signal_connect (delete_event => sub {Gtk2->main_quit}); my $view = create_view_and_model(); $window->add ($view); $window->show_all; Gtk2->main; From rwmcfa1@neces.com Mon Oct 25 08:47:53 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D2F673B1180 for ; Mon, 25 Oct 2004 08:47:53 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03743-04 for ; Mon, 25 Oct 2004 08:47:51 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id 9A9033B0061 for ; Mon, 25 Oct 2004 08:47:51 -0400 (EDT) Received: from [192.168.1.45] (12-222-230-66.client.insightBB.com [12.222.230.66]) by merry.dreamhost.com (Postfix) with ESMTP id E58B217514B; Mon, 25 Oct 2004 05:47:48 -0700 (PDT) From: Ross McFarland To: B McAndrews In-Reply-To: <1098705675.22249.22.camel@lb1> References: <1098705675.22249.22.camel@lb1> Content-Type: text/plain Message-Id: <1098708468.2201.250.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 25 Oct 2004 08:47:48 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl mailing list Subject: Re: ComboBox with multiple cellrenderers X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 12:47:56 -0000 On Mon, 2004-10-25 at 08:01, B McAndrews wrote: > I have played with muppet's cellrenderprogress custom renderer. When I > go to display the combo list, I get these messages, the list still gets > rendered but performance on this thing is pretty poor. I've attached > the program if anyone wants to see it. My question is why isn't the > GtkCellView type recognized? GtkCellView is new to 2.6.x (2.5.x) which you probably aren't compiling against and therefore isn't available. -- -rm http://www.neces.com/ From oger@sia.ucl.ac.be Mon Oct 25 09:14:48 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A0D2A3B102D for ; Mon, 25 Oct 2004 09:14:48 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05128-03 for ; Mon, 25 Oct 2004 09:14:46 -0400 (EDT) Received: from spoolo1.tiscali.be (spoolo1.tiscali.be [62.235.13.172]) by menubar.gnome.org (Postfix) with ESMTP id CF82F3B0811 for ; Mon, 25 Oct 2004 09:14:45 -0400 (EDT) Received: from [83.134.201.119] (helo=83-134-201-119.Namur.GoPlus.FastDSL.tiscali.be) by spoolo1.tiscali.be with esmtp (Tiscali.be http://www.tiscali.be) id 1CM4gP-0004sg-1Z for ; Mon, 25 Oct 2004 15:14:45 +0200 From: "Fred. Oger" To: gtk-perl mailing list Content-Type: text/plain Message-Id: <1098710097.2955.17.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 25 Oct 2004 15:14:57 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Another newbie question X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 13:14:48 -0000 Hi all, I have a function which takes a widget (either a Gtk2::Button or a Gtk2::Entry) as argument. I need to know the type of this widget. Is the any function to get it ? Regards, Fred. From mid@gtmp.org Mon Oct 25 09:16:34 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AEAB83B1167 for ; Mon, 25 Oct 2004 09:16:34 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05218-04 for ; Mon, 25 Oct 2004 09:16:32 -0400 (EDT) Received: from mxis.promotrans.net (62-240-247-8.adsl.claranet.fr [62.240.247.8]) by menubar.gnome.org (Postfix) with ESMTP id C24123B102D for ; Mon, 25 Oct 2004 09:16:31 -0400 (EDT) Received: from [192.168.0.69] (unknown [192.168.0.69]) by mxis.promotrans.net (Postfix) with ESMTP id 305863EE4F; Mon, 25 Oct 2004 15:08:08 +0200 (CEST) Message-ID: <417CFCA1.1060803@gtmp.org> Date: Mon, 25 Oct 2004 15:16:17 +0200 From: Alexandre Jousset Organization: Promotrans User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Fred. Oger" References: <1098710097.2955.17.camel@localhost.localdomain> In-Reply-To: <1098710097.2955.17.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl mailing list Subject: Re: Another newbie question X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 13:16:34 -0000 Hi, Fred. Oger wrote: > Hi all, > > I have a function which takes a widget (either a Gtk2::Button or a > Gtk2::Entry) as argument. I need to know the type of this widget. Is the > any function to get it ? Use ref($widget), that returns a string containg the type. Try it ! HTH, -- \^/ -/ O \---------------------------------------- | |/ \| Alexandre (Midnite) Jousset | -|___|---------------------------------------- From rwmcfa1@neces.com Mon Oct 25 10:10:19 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0E2C23B11EB for ; Mon, 25 Oct 2004 10:10:19 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07808-01 for ; Mon, 25 Oct 2004 10:10:16 -0400 (EDT) Received: from monkichi.sd.dreamhost.com (monkichi.sd.dreamhost.com [66.33.201.156]) by menubar.gnome.org (Postfix) with ESMTP id 78BD83B11DA for ; Mon, 25 Oct 2004 10:10:16 -0400 (EDT) Received: from webmail.neces.com (localhost [127.0.0.1]) by monkichi.sd.dreamhost.com (Postfix) with SMTP id B368D9A39D; Mon, 25 Oct 2004 07:10:15 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user rwmcfa1@neces.com) by webmail.neces.com with HTTP; Mon, 25 Oct 2004 10:10:15 -0400 (EDT) Message-ID: <49498.192.146.101.26.1098713415.spork@webmail.neces.com> In-Reply-To: <1098711885.22249.31.camel@lb1> References: <1098705675.22249.22.camel@lb1> <1098708468.2201.250.camel@beta.local> <1098711885.22249.31.camel@lb1> Date: Mon, 25 Oct 2004 10:10:15 -0400 (EDT) From: "Ross McFarland" To: "B McAndrews" User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: ComboBox with multiple cellrenderers X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 14:10:19 -0000 B McAndrews said: > On Mon, 2004-10-25 at 07:47, Ross McFarland wrote: > >> GtkCellView is new to 2.6.x (2.5.x) which you probably aren't compiling >> against and therefore isn't available. > > Now I'm confused. I compile Gtk2-perl (1.061) against gtk+-2.4.3 and > glib-2.4.2 which was distributed in with the gnome-2.6 sources. I can > see the the GtkCellView in the libgtk-x11-2.0.so file. What am I > missing here? Gtk2-Perl: 1.061 doesn't have bindingins for GtkCellView, only HEAD which hasn't released yet. Gnome 2.6 released with 2.4.x of gtk+ (and friends.) this is why i'm fundamentally against trying to keep version numbers similar b/c there are times when it confuses things. (this is why we went with our own numbering scheme for Gtk2-Perl) apparently GtkCellView is in 2.4.x b/c it's in the sources i have. i don't know why we don't have it bound in 1.06x, perhaps it used to be an internal widget that is now public or something of that nature. -rm From scott@asofyet.org Mon Oct 25 10:41:29 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 45A0C3B0C4F for ; Mon, 25 Oct 2004 10:41:29 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09345-07 for ; Mon, 25 Oct 2004 10:41:27 -0400 (EDT) Received: from monkichi.sd.dreamhost.com (monkichi.sd.dreamhost.com [66.33.201.156]) by menubar.gnome.org (Postfix) with ESMTP id 68DBE3B0C86 for ; Mon, 25 Oct 2004 10:41:26 -0400 (EDT) Received: from webmail.asofyet.org (localhost [127.0.0.1]) by monkichi.sd.dreamhost.com (Postfix) with SMTP id D60FC9A159 for ; Mon, 25 Oct 2004 07:41:24 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user scott@asofyet.org) by webmail.asofyet.org with HTTP; Mon, 25 Oct 2004 10:41:24 -0400 (EDT) Message-ID: <63532.192.146.101.26.1098715284.spork@webmail.asofyet.org> In-Reply-To: <1098708468.2201.250.camel@beta.local> References: <1098705675.22249.22.camel@lb1> <1098708468.2201.250.camel@beta.local> Date: Mon, 25 Oct 2004 10:41:24 -0400 (EDT) From: "muppet" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: ComboBox with multiple cellrenderers X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 14:41:30 -0000 Ross McFarland said: > On Mon, 2004-10-25 at 08:01, B McAndrews wrote: >> I have played with muppet's cellrenderprogress custom renderer. When I >> go to display the combo list, I get these messages, the list still gets >> rendered but performance on this thing is pretty poor. I've attached >> the program if anyone wants to see it. My question is why isn't the >> GtkCellView type recognized? > > GtkCellView is new to 2.6.x (2.5.x) which you probably aren't compiling > against and therefore isn't available. actually, it appears that GtkCellView was introduced for the GtkComboBox in 2.4.x, but was private until 2.5.x. in the 2.4.x sources i see gtkcellview.h and .c, but there's not actual gtk-doc comments in them as there are in cvs HEAD. oh, and the clincher, in the Makefile.am for 2.4.x gtkcellview.h is listed in the private headers, and in 2.5.x, it's listed in the public headers. so, although the widget existed in 2.4.x and is used by the ComboBox to render its lists, it was not exposed publically, so there are no bindings for it. you get the "not registered with GPerl" message because the ComboBox's CellView (used to host CellRenderers in the absence of a TreeView) passes the CellView itself as $widget to your renderer's RENDER vfunc. this message is actually coming from gperl_new_object(), called from the vfunc marshaler for RENDER, when it tries to create the perl wrapper the first time the bindings see the object. short of upgrading your gtk2-perl to cvs HEAD, there's not really much you can do about those messages. luckily, though, from running the example code, the warnings come out only once per CellView object (that's five times altogether), and don't appear to have an impact otherwise. as far as "the performance on this thing is pretty poor", um, in what way? it seems to run pretty smoothly for me. -- muppet From bmcandrews@efs-us.com Mon Oct 25 12:16:24 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B3EAC3B126C for ; Mon, 25 Oct 2004 12:16:24 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14270-08 for ; Mon, 25 Oct 2004 12:16:22 -0400 (EDT) Received: from igw1.efs-us.com (mail.archelon-us.com [208.48.30.132]) by menubar.gnome.org (Postfix) with ESMTP id C21F53B1296 for ; Mon, 25 Oct 2004 12:14:12 -0400 (EDT) Received: from lb1.archelon-us.com (lb1.archelon-us.com [192.92.2.75]) by igw1.efs-us.com (Postfix) with ESMTP id 4002728C28A for ; Mon, 25 Oct 2004 11:14:12 -0500 (CDT) From: B McAndrews To: gtk-perl mailing list Content-Type: multipart/mixed; boundary="=-AaaQ+ROljy+sAkvfo2N3" Organization: Message-Id: <1098720852.22249.44.camel@lb1> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 25 Oct 2004 11:14:12 -0500 X-Virus-Scanned: by amavisd-new at gnome.org Subject: [Fwd: Re: ComboBox with multiple cellrenderers] X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 16:16:24 -0000 --=-AaaQ+ROljy+sAkvfo2N3 Content-Type: text/plain Content-Transfer-Encoding: 7bit --=-AaaQ+ROljy+sAkvfo2N3 Content-Disposition: inline Content-Description: Forwarded message - Re: ComboBox with multiple cellrenderers Content-Type: message/rfc822 Subject: Re: ComboBox with multiple cellrenderers From: B McAndrews To: muppet In-Reply-To: <63532.192.146.101.26.1098715284.spork@webmail.asofyet.org> References: <1098705675.22249.22.camel@lb1> <1098708468.2201.250.camel@beta.local> <63532.192.146.101.26.1098715284.spork@webmail.asofyet.org> Content-Type: text/plain Organization: Message-Id: <1098720767.22249.42.camel@lb1> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 25 Oct 2004 11:12:48 -0500 Content-Transfer-Encoding: 7bit > > as far as "the performance on this thing is pretty poor", um, in what way? it > seems to run pretty smoothly for me. > sorry about the confusion. The demo I sent does alright (although it does chew up the cpu). What I had was a variation for the progress bar which I called CellRendererPct. I gave the bars within the ComboBox view (what is it really? GtkCellView?) a certain percentage red and the remainder green. I typically have between 10-30 entries in the combobox. That was where I was having problems with performance. Brian package CellRendererPct; use strict; use warnings; use Glib qw(G_PARAM_READWRITE); use Gtk2; use Glib::Object::Subclass Gtk2::CellRenderer::, properties => [ Glib::ParamSpec->double ('percentage', 'Percentage', 'The fractional progress to display', 0.0, 1.0, 0.0, G_PARAM_READWRITE), ], ; sub INIT_INSTANCE { my $self = shift; $self->set (mode => 'activatable', xpad => 4, ypad => 2); $self->{percentage} = 0.0; } # we'll use the default new, GET_PROPERTY and SET_PROPERTY provided by # Glib::Object::Subclass. # # calculate the size of our cell, taking into account padding and # alignment properties of parent. # use constant FIXED_WIDTH => 30; use constant FIXED_HEIGHT => 25; use constant RED => Gtk2::Gdk::Color->new(0xFFFF,0x0,0x0); use constant GREEN => Gtk2::Gdk::Color->new(0x0,0xFFFF,0x0); use constant GREY => Gtk2::Gdk::Color->parse('grey'); sub MAX { $_[0] > $_[1] ? $_[0] : $_[1] } sub GET_SIZE { my ($cell, $widget, $cell_area) = @_; my ($x_offset, $y_offset) = (0, 0); my $width = int ($cell->get ('xpad') * 2 + FIXED_WIDTH); my $height = int ($cell->get ('ypad') * 2 + FIXED_HEIGHT); if ($cell_area) { $x_offset = $cell->get ('xalign') * ($cell_area->width - $width); $x_offset = MAX ($x_offset, 0); $y_offset = $cell->get ('yalign') * ($cell_area->height - $height); $y_offset = MAX ($y_offset, 0); } return ($x_offset, $y_offset, $width, $height); } sub RENDER { my ($cell, $window, $widget, $background_area, $cell_area, $expose_area, $flags) = @_; # my $defcolor = $widget->style->base('selected'); my ($x_offset, $y_offset, $width, $height) = $cell->GET_SIZE ($widget, $cell_area); my $state = $widget->has_focus ? 'active' : 'normal'; my ($xpad, $ypad) = $cell->get (qw(xpad ypad)); $width -= $xpad*2; $height -= $ypad*2; my $plainstyle = $widget->get_modifier_style->copy; # $cell->set('cell_background_set' => 'grey'); # $widget->modify_base('normal',GREY); # $widget->style->paint_box ($window, # 'normal', 'out', # undef, $widget, "flatbar", # $background_area->x, # $background_area->y, # $background_area->width, # $background_area->height); # $widget->style->paint_box ($window, # 'normal', 'in', # undef, $widget, "trough", # $cell_area->x + $x_offset + $xpad, # $cell_area->y + $y_offset + $ypad, # $width-1, $height-1 ); my $xstart = $cell_area->x + $x_offset + $xpad; if ($cell->{percentage} >= (1.0/9.0)) { $widget->modify_bg($state, RED); $widget->style->paint_box ($window, $state, 'out', undef, $widget, "flatbar", $xstart, $cell_area->y + $y_offset + $ypad, $width * $cell->{percentage}, $height-1); } $widget->modify_bg($state, GREEN); $xstart += ($width*$cell->{percentage}); $widget->style->paint_box ($window, $state, 'out', undef, $widget, "flatbar", $xstart, $cell_area->y + $y_offset + $ypad, $width * (1-$cell->{percentage}), $height-1); $widget->modify_style($plainstyle); } --=-AaaQ+ROljy+sAkvfo2N3-- From kaffeetisch@gmx.de Mon Oct 25 15:07:53 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 356C53B0653 for ; Mon, 25 Oct 2004 15:07:53 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22152-02 for ; Mon, 25 Oct 2004 15:07:50 -0400 (EDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id 3928D3B116A for ; Mon, 25 Oct 2004 15:07:50 -0400 (EDT) Received: (qmail 27029 invoked by uid 65534); 25 Oct 2004 19:07:48 -0000 Received: from pD9569FD2.dip.t-dialin.net (EHLO router.dialin.t-online.de) (217.86.159.210) by mail.gmx.net (mp012) with SMTP; 25 Oct 2004 21:07:48 +0200 X-Authenticated: #2092818 From: Torsten Schoenfeld To: gtk-perl-list@gnome.org Content-Type: text/plain Date: Mon, 25 Oct 2004 21:07:48 +0200 Message-Id: <1098731268.2863.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Gnome2::Wnck 0.08 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 19:07:53 -0000 Gnome2::Wnck allows you to use the Window Navigator Construction Kit library (libwnck for short) from Perl to create things like desktop switchers and taskbars. The package is available from: http://sourceforge.net/project/showfiles.php?group_id=64773&package_id=97490&release_id=277767 Overview of changes in Gnome2-Wnck 0.08 ======================================= * New bindings for: - wnck_screen_get_previously_active_window - wnck_window_is_fullscreen - wnck_window_set_fullscreen - wnck_window_is_most_recently_activated From scvalmei@graaph.arq.br Mon Oct 25 16:56:16 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C0E7C3B10F8 for ; Mon, 25 Oct 2004 16:56:16 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26450-05 for ; Mon, 25 Oct 2004 16:56:14 -0400 (EDT) Received: from hm171.locaweb.com.br (hm171.locaweb.com.br [200.234.203.7]) by menubar.gnome.org (Postfix) with SMTP id E9A3A3B0659 for ; Mon, 25 Oct 2004 16:56:13 -0400 (EDT) Received: (qmail 99631 invoked by uid 0); 25 Oct 2004 20:56:12 -0000 Received: from unknown (200.234.205.130) by hm171.locaweb.com.br with QMTP; 25 Oct 2004 20:56:12 -0000 Received: (qmail 3754 invoked from network); 25 Oct 2004 20:56:01 -0000 Received: from unknown (HELO graaph.arq.br) (scvalmei:graaph.arq.br@200.227.56.92) by hm158.locaweb.com.br with SMTP; 25 Oct 2004 20:56:01 -0000 Message-ID: <417D5A57.C126C9A6@graaph.arq.br> Date: Mon, 25 Oct 2004 17:56:07 -0200 From: SilvioCVdeAlmeida X-Mailer: Mozilla 4.8 [en] (Win95; U) X-Accept-Language: pt-BR,en MIME-Version: 1.0 To: gtk-perl-list@gnome.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Where is Gtk2-GLExt? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 20:56:16 -0000 Hello, I did not find Gtk2-GLExt on Gtk2 main webpage at gt2-perl.sourceforge.net. It seems to be in CVS tough. What the official location and status of Gtk2-GLExt are? Thank you Silvio From rwmcfa1@neces.com Mon Oct 25 17:34:48 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8513C3B127F for ; Mon, 25 Oct 2004 17:34:48 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28375-06 for ; Mon, 25 Oct 2004 17:34:46 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id 5EC773B127D for ; Mon, 25 Oct 2004 17:34:46 -0400 (EDT) Received: from [192.168.1.45] (12-222-230-66.client.insightBB.com [12.222.230.66]) by merry.dreamhost.com (Postfix) with ESMTP id 4E85C175156; Mon, 25 Oct 2004 14:34:44 -0700 (PDT) From: Ross McFarland To: SilvioCVdeAlmeida In-Reply-To: <417D5A57.C126C9A6@graaph.arq.br> References: <417D5A57.C126C9A6@graaph.arq.br> Content-Type: text/plain Message-Id: <1098740076.2201.255.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 25 Oct 2004 17:34:36 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Where is Gtk2-GLExt? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 21:34:48 -0000 On Mon, 2004-10-25 at 15:56, SilvioCVdeAlmeida wrote: > Hello, > > I did not find Gtk2-GLExt on Gtk2 main webpage at > gt2-perl.sourceforge.net. It seems to be in CVS tough. What the official > location and status of Gtk2-GLExt are? i (should) work, but i dropped it mainly due to lack of decent opengl bindings for perl. there are several on cpan only one of which i could get to build and it wasn't very fully featured. didn't offer any mechanisms for text etc. if something has changed with the opengl bindings let me know and i'll consider doing a release in whatever state it's in. if someone out there is interested in becoming the maintainer of the Gtk2-GLExt module speak up. -- -rm http://www.neces.com/ From gnome-gtk-perl-list@m.gmane.org Mon Oct 25 17:41:42 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 05A463B0944 for ; Mon, 25 Oct 2004 17:41:42 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28747-02 for ; Mon, 25 Oct 2004 17:41:41 -0400 (EDT) Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 82D963B0BF2 for ; Mon, 25 Oct 2004 17:41:40 -0400 (EDT) Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CMCax-000639-00 for ; Mon, 25 Oct 2004 23:41:39 +0200 Received: from pool-68-160-211-215.ny325.east.verizon.net ([68.160.211.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Oct 2004 23:41:39 +0200 Received: from yselkowitz by pool-68-160-211-215.ny325.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Oct 2004 23:41:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gtk-perl-list@gnome.org From: Yaakov Selkowitz Date: Mon, 25 Oct 2004 17:32:38 -0400 Lines: 65 Message-ID: References: <1098731268.2863.5.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080803020403020800010308" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pool-68-160-211-215.ny325.east.verizon.net User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en In-Reply-To: <1098731268.2863.5.camel@localhost> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Sender: news X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Gnome2::Wnck 0.08 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 21:41:42 -0000 This is a multi-part message in MIME format. --------------080803020403020800010308 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Torsten Schoenfeld wrote: | Overview of changes in Gnome2-Wnck 0.08 | ======================================= | | * New bindings for: | - wnck_screen_get_previously_active_window | - wnck_window_is_fullscreen | - wnck_window_set_fullscreen | - wnck_window_is_most_recently_activated This version fails some tests with libwnck-2.8.1 on Cygwin. something I don't remember it doing before. Output of 'make test' is attached. Yaakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBfXDypiWmPGlmQSMRAumbAKDnQF9J28CTXkKwTfMvqqtSxPowNwCfebX9 h+JYCuwG/Yfqm/zUCkAxDyQ= =h5Rs -----END PGP SIGNATURE----- --------------080803020403020800010308 Content-Type: text/plain; name="Gnome2-Wnck-0.08.test" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Gnome2-Wnck-0.08.test" /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/Wnck...............ok 1/2 skipped: no active window found t/WnckApplication....ok 10/10 skipped: no active window found t/WnckClassGroup.....ok 6/6 skipped: no active window found t/WnckPager..........ok t/WnckScreen.........ok 6/14 skipped: various reasons t/WnckTasklist.......ok t/WnckWindow.........# Looks like you planned 38 tests but only ran 36. dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 37-38 Failed 2/38 tests, 94.74% okay (less 36 skipped tests: 0 okay, 0.00%) t/WnckWorkspace......Failed 1/8 test scripts, 87.50% okay. 2/80 subtests failed, 97.50% okay. make: *** [test_dynamic] Error 255 ok 7/7 skipped: couldn't get first workspace Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/WnckWindow.t 2 512 38 4 10.53% 37-38 66 subtests skipped. --------------080803020403020800010308-- From dkasak@nusconsulting.com.au Tue Oct 26 01:50:42 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 59B9A3B0D93 for ; Tue, 26 Oct 2004 01:50:42 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11063-09 for ; Tue, 26 Oct 2004 01:50:41 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id AB7D63B0676 for ; Tue, 26 Oct 2004 01:50:39 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9Q5qUIl018491 for ; Tue, 26 Oct 2004 15:52:41 +1000 Message-ID: <417DE635.6040206@nusconsulting.com.au> Date: Tue, 26 Oct 2004 15:52:53 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org Content-Type: multipart/mixed; boundary="----------=_1098769961-14553-41" X-Canit-Stats-ID: 121412 - 3b19d8ecfa55 X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Subject: segfault on exit? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 05:50:42 -0000 This is a multi-part message in MIME format... ------------=_1098769961-14553-41 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all. I assume that it doesn't matter too much, but I've noticed that when I exit gtk2-perl apps now they segfault. I'm exiting by connecting the sub: > sub on_MainMenu_destroy { > exit; > } to the app's menu's 'destroy' signal. Is this something to worry about or not? Is there something I'm supposed to do other than 'exit'? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1098769961-14553-41 Content-Type: text/html; name="CANIT-VOTING-LINKS-121412-3b19d8ecfa55.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-121412-3b19d8ecfa55.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 121412

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1098769961-14553-41-- From pagaltzis@gmx.de Tue Oct 26 02:15:33 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B17BD3B072A for ; Tue, 26 Oct 2004 02:15:33 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11901-07 for ; Tue, 26 Oct 2004 02:15:31 -0400 (EDT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id CB34D3B0723 for ; Tue, 26 Oct 2004 02:15:30 -0400 (EDT) Received: (qmail 18576 invoked by uid 65534); 26 Oct 2004 06:15:29 -0000 Received: from xdsl-213-196-250-154.netcologne.de (EHLO klangraum) (213.196.250.154) by mail.gmx.net (mp001) with SMTP; 26 Oct 2004 08:15:29 +0200 X-Authenticated: #163624 Date: Tue, 26 Oct 2004 08:15:20 +0200 From: "A. Pagaltzis" To: gtk-perl-list@gnome.org Message-ID: <20041026061520.GA20620@klangraum> Mail-Followup-To: gtk-perl-list@gnome.org References: <417DE635.6040206@nusconsulting.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <417DE635.6040206@nusconsulting.com.au> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: segfault on exit? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 06:15:33 -0000 * Daniel Kasak [2004-10-26 07:52]: > I assume that it doesn't matter too much, but I've noticed that > when I exit gtk2-perl apps now they segfault. > > I'm exiting by connecting the sub: > >> sub on_MainMenu_destroy { >> exit; >> } > > to the app's menu's 'destroy' signal. I don't know if it'll fix your segfault, exactly, but you should be quitting using Gtk2->main_quit(). Regards, -- Aristotle @j = ((qw)" Just " )), @a = ((qw " another" )), @p = ((qw " Perl " )), @h = ((qw " hacker " )), (()),),(s""@j,",s (" )))g), print From v.ladeuil@alplog.fr Tue Oct 26 06:14:41 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 69ABD3B06DB for ; Tue, 26 Oct 2004 06:14:41 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20944-10 for ; Tue, 26 Oct 2004 06:14:39 -0400 (EDT) Received: from smtp-out.completel.net (smtp-out.completel.net [83.145.110.36]) by menubar.gnome.org (Postfix) with ESMTP id 4EBC13B073E for ; Tue, 26 Oct 2004 06:14:39 -0400 (EDT) Received: from dune.alplog.net (unknown [195.167.225.14]) by smtp-out.completel.net (Postfix) with ESMTP id 7B6C6280169; Tue, 26 Oct 2004 12:14:38 +0200 (CEST) Received: by dune.alplog.net (Postfix, from userid 1000) id BC81219867; Tue, 26 Oct 2004 12:14:55 +0200 (CEST) To: Ross McFarland References: <1096248219.29860.13.camel@beta.local> From: Vincent LADEUIL Date: 26 Oct 2004 12:14:55 +0200 In-Reply-To: <1096248219.29860.13.camel@beta.local> Message-ID: <874qkh23c0.fsf@dune.alplog.net> Lines: 57 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Gtk2::Ex::Simple::(List|Tree) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 10:14:41 -0000 --=-=-= >>>>> "Ross" == Ross McFarland writes: Ross> preliminary test releases: Ross> http://www.neces.com/gtk2-perl/Gtk2-Ex-Simple-List-0.30.tar.gz Ross> http://www.neces.com/gtk2-perl/Gtk2-Ex-Simple-Tree-0.30.tar.gz Installed. Ross> take a look, Done :o) Ross> report back. Thanks a lot. It was a great help to understand how the MVC paradigm was used. 'get_selected_indices' is not implemented in Simple::Tree. This can be reproduced by pressing the Ok button. On a different topic, I have defined a new CellRenderer: CellRendererTextCompletion, derived from CellRendererText which implements completion functionality. For that, I need to specify a completion model for each column using this renderer. But the interface of Simple::(List::Tree) does not allow parameters for renderers. So I have to build the Simple::(L|T), access the renderer and set the completion model. I have tried various approaches : - define a property for the renderer. Looks like only columns can be used. In the case of a completion, this is inadequate. - try to define a 'new' subroutine. Can't get it to work, I don't understand why S::(L|T) can inherit from Gtk2::TreeView via a simple ISA but CellRendererText insist on using the Glib::Object::Subclass mechanism. Anyway as SLT only provide a way to define the *type* of the renderer and not an instance or a sub returning an instance of a renderer, I also abandon that approach. In the end, I just build an SLT, access the renderer, set the completion model, and associate it to the underlying Entry widget in START_EDITING. I just wonder if things can be done more efficiently. Anyway, I include my actual package and will hear with humility every remark from the list. Thanks again for your work and in advance for your remarks :o) Vincent --=-=-= Content-Type: application/x-perl Content-Disposition: attachment; filename=CellRendererTextCompletion.pm package PhD::CellRendererTextCompletion ; use strict ; use diagnostics ; use constant DEBUG => 0 ; use Data::Dumper ; use File::Spec ; use Glib qw/TRUE FALSE/; use Gtk2 ; use Gtk2::GladeXML; use Gtk2::Ex::Simple::List ; use Glib::Object::Subclass Gtk2::CellRendererText::, properties => [ Glib::ParamSpec->boxed ('list', 'List', 'List of possible values', 'Glib::Scalar', [qw/readable writable/]), ], ; sub set_completion_model { my ($cell,$completion_model) =@_ ; $cell->{completion_model} = $completion_model ; } sub get_completion_model { my ($cell) =@_ ; return $cell->{completion_model} ; } sub START_EDITING { my ($cell, $event, $view, $path, $background_area, $cell_area, $flags) = @_; my $editable = $cell->Gtk2::CellRendererText::START_EDITING ($event, $view, $path, $background_area, $cell_area, $flags) ; # $editable->set_width_chars(15) ; my $tra_module = PhD::TBL->new('names','tra_module.tbl') ; warn "Cannot load tra_module.tbl\n" if (!defined($tra_module)) ; my $completion = Gtk2::EntryCompletion->new() ; $completion->set_model($cell->get_completion_model()) ; $completion->set_text_column(0) ; $completion->set_match_func(\&match_name) ; $editable->set_completion($completion) ; return $editable ; } sub match_name { # For each line in the pulldown menu, look which names # matches the regexp typed by the user in the filter my ($ent_comp,$key,$iter) = @_ ; my $ret = FALSE ; my $model = $ent_comp->get_model() ; my $name = $model->get($iter) ; $ret = TRUE if ($name eq '') ; $ret = TRUE if ($name =~ m/$key/i) ; warn "name [$name] matches key [$key] : ret [$ret]\n" if (DEBUG>= 4) ; return $ret ; } Gtk2::Ex::Simple::List->add_column_type ('completion' => (type=>'Glib::String', renderer=>'PhD::CellRendererTextCompletion', attr=> 'text')) ; 1 ; --=-=-=-- From scott@asofyet.org Tue Oct 26 08:05:45 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 45A013B12F9 for ; Tue, 26 Oct 2004 08:05:45 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26739-02 for ; Tue, 26 Oct 2004 08:05:42 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id 21A6C3B12F5 for ; Tue, 26 Oct 2004 08:05:28 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by smeagol.dreamhost.com (Postfix) with ESMTP id A8DAC238D6; Tue, 26 Oct 2004 05:05:26 -0700 (PDT) In-Reply-To: <417DE635.6040206@nusconsulting.com.au> References: <417DE635.6040206@nusconsulting.com.au> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <571A6EDE-2747-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Tue, 26 Oct 2004 08:05:34 -0400 To: Daniel Kasak X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: segfault on exit? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 12:05:45 -0000 On Oct 26, 2004, at 1:52 AM, Daniel Kasak wrote: > to the app's menu's 'destroy' signal. > Is this something to worry about or not? Is there something I'm > supposed to do other than 'exit'? using exit() shouldn't be a problem. a stack trace would help. you can get one from a core file. $ ulimit -c unlimited # drop a core file on segfaults $ perl yourscript.pl # run it to make it segfault $ gdb perl corefile (gdb) backtrace [send this text] -- I think it worked on the Wiley Coyote model of project management - if at any point you looked down and realised what you were doing was impossible then you'd instantly fail. -- Simon Wistow From scott@asofyet.org Tue Oct 26 08:38:29 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1C6FC3B12C4 for ; Tue, 26 Oct 2004 08:38:29 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28849-10 for ; Tue, 26 Oct 2004 08:38:27 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id 5211C3B1286 for ; Tue, 26 Oct 2004 08:38:27 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by smeagol.dreamhost.com (Postfix) with ESMTP id 6747723A25; Tue, 26 Oct 2004 05:38:26 -0700 (PDT) In-Reply-To: <874qkh23c0.fsf@dune.alplog.net> References: <1096248219.29860.13.camel@beta.local> <874qkh23c0.fsf@dune.alplog.net> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: muppet Date: Tue, 26 Oct 2004 08:38:04 -0400 To: Vincent LADEUIL X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Gtk2::Ex::Simple::(List|Tree) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 12:38:29 -0000 On Oct 26, 2004, at 6:14 AM, Vincent LADEUIL wrote: > 'get_selected_indices' is not implemented in Simple::Tree. get_selected_indices() returns a flat list of integers which are indices into a single-level list. this doesn't make much sense in a multi-level tree, hence, it's not implemented. something like it could be made, but it would necessarily have to return different data (possibly a list of TreePaths or TreeIters), making it somewhat less Simple. > On a different topic, I have defined a new CellRenderer: > CellRendererTextCompletion, derived from CellRendererText which > implements completion functionality. [snip] > - define a property for the renderer. Looks like only columns can > be used. In the case of a completion, this is inadequate. if you mean a TreeViewColumn attribute, then yes, that's how it works. > - try to define a 'new' subroutine. Can't get it to work, I don't > understand why S::(L|T) can inherit from Gtk2::TreeView via a > simple ISA but CellRendererText insist on using the > Glib::Object::Subclass mechanism. because if you want to create new signals/properties or override C vfuncs, you *must* replace the GTypeClass with your own at the C level; this is what Glib::Object::Subclass does for you, and what conventional perl object derivation cannot do. the basic problem is that the CellRenderer methods RENDER, START_RENDERING, etc, are virtual methods called from deep within gtk+. gtk+ looks up what C function to call in the GTypeClass (essentially a vtable) of the CellRenderer instance. if you just use normal perl derivation for the subtype, there's no way to route that call through your perl code. by using Glib::Object::Subclass, a new GType gets created for your object, and that GType carries with it a vtable that marshals those virtual method calls to perl. SimpleList/SimpleTree don't do this because they don't need to -- because your perl code initiates the relevant method calls. custom CellRenderers and TreeModels simply will not work without Subclass, because the perl code you want called must be triggered from C. you can still define a new() for your CellRenderer class, but SimpleList/SimpleTree will not pass parameters to it. > Anyway as SLT only provide a way to define the *type* of the renderer > and not an instance or a sub returning an instance of a renderer... the callback approach would be pretty interesting; at the risk of feature creep, we could have the tree construction code check whether the renderer type key is ref($val) eq 'CODE'... > In the end, I just build an SLT, access the renderer, set the > completion model, and associate it to the underlying Entry widget > in START_EDITING. I just wonder if things can be done more > efficiently. you do need to create a new editable in each invocation of START_EDITING, so that's alright. you could avoid common work by placing that in INIT_INSTANCE or set_completion_model(). in fact, i see that you load a PhD::TBL, but don't see where you use it; is that something important? also, do you really want to use the same completion model for every row in a column? how are you creating that model? is it something that could be placed in INIT_INSTANCE, or are you filling it with external data? -- "that's it! you're a genius!" "yes. that's what i think. do you think i deserve a raise?" - dialogue from 'Godzilla versus Mothra', 1964 From scott@asofyet.org Tue Oct 26 09:10:14 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D173F3B08CF for ; Tue, 26 Oct 2004 09:10:12 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30689-02 for ; Tue, 26 Oct 2004 09:10:10 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id EBE083B09F4 for ; Tue, 26 Oct 2004 09:10:02 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by pippin.dreamhost.com (Postfix) with ESMTP id BFD8C16D23E; Tue, 26 Oct 2004 06:10:01 -0700 (PDT) In-Reply-To: <417CDBA9.3070109@genphys.phys.msu.ru> References: <3F1F207B.8060303@genphys.phys.msu.ru> <417CDBA9.3070109@genphys.phys.msu.ru> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5CA000C6-2750-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Tue, 26 Oct 2004 09:10:08 -0400 To: dmitriy kuvshinov X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: transparent layer over image X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 13:10:14 -0000 On Oct 25, 2004, at 6:55 AM, dmitriy kuvshinov wrote: >> are you wanting to draw annotations on the image without altering the >> pixbuf's data? >> you can either use Gdk drawing primitives to draw directly on the >> screen after drawing the image (which can be a pain to keep up), or >> use Gnome2::Canvas for structured graphics. >> otherwise, you can just alter the image data, keeping a pristine copy >> separate from the annotated one. > > I want to make the gauge of overcast (then to lay out the gauge under > GPL the license). I have already made all calculations and have > collected as *.xs the module. if you already have XS code in your module, then it will be much easier for you to draw on the image in C. you can pass the GdkPixbuf to your xsub, draw on it in C (where there is no need to copy data, unpack/pack pixels, and all that mess), and then display the pixbuf from perl. to do this you'll need to #include in your XS file, so that your code will know how to extract the GdkPixbuf* from the Gtk2::Gdk::Pixbuf reference. you can use ExtUtils::Depends to find the necessary CFLAGS and typemaps. -- elysse (pregnant): are your hands cold? me: uh, i suppose so. elysse: will you put them on me? From v.ladeuil@alplog.fr Tue Oct 26 09:12:53 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 85BD93B0A79 for ; Tue, 26 Oct 2004 09:12:53 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30842-07 for ; Tue, 26 Oct 2004 09:12:51 -0400 (EDT) Received: from smtp-out.completel.net (unknown [195.167.192.116]) by menubar.gnome.org (Postfix) with ESMTP id 6967E3B1227 for ; Tue, 26 Oct 2004 09:12:40 -0400 (EDT) Received: from dune.alplog.net (unknown [195.167.225.14]) by smtp-out.completel.net (Postfix) with ESMTP id 9773025C16B; Tue, 26 Oct 2004 15:12:39 +0200 (CEST) Received: by dune.alplog.net (Postfix, from userid 1000) id 594BA19870; Tue, 26 Oct 2004 15:12:57 +0200 (CEST) To: muppet References: <1096248219.29860.13.camel@beta.local> <874qkh23c0.fsf@dune.alplog.net> From: Vincent LADEUIL Date: 26 Oct 2004 15:12:57 +0200 In-Reply-To: Message-ID: <87r7nlzkpy.fsf@dune.alplog.net> Lines: 150 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Gtk2::Ex::Simple::(List|Tree) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 13:12:53 -0000 >>>>> "muppet" == muppet writes: muppet> On Oct 26, 2004, at 6:14 AM, Vincent LADEUIL wrote: >> 'get_selected_indices' is not implemented in Simple::Tree. muppet> get_selected_indices() returns a flat list of muppet> integers which are indices into a single-level list. muppet> this doesn't make much sense in a multi-level tree, muppet> hence, it's not implemented. Sorry, should have made myself clearer: The example script simple_tree.pl calls the unimplemented get_selected_indices. I didn't need it myself. muppet> something like it could be made, but it would muppet> necessarily have to return different data (possibly a muppet> list of TreePaths or TreeIters), making it somewhat muppet> less Simple. Keep it Simple then :o) >> On a different topic, I have defined a new CellRenderer: >> CellRendererTextCompletion, derived from CellRendererText >> which implements completion functionality. muppet> [snip] >> - define a property for the renderer. Looks like only >> columns can be used. In the case of a completion, this is >> inadequate. muppet> if you mean a TreeViewColumn attribute, then yes, muppet> that's how it works. We agree. >> - try to define a 'new' subroutine. Can't get it to work, >> I don't understand why S::(L|T) can inherit from >> Gtk2::TreeView via a simple ISA but CellRendererText >> insist on using the Glib::Object::Subclass mechanism. muppet> because if you want to create new signals/properties muppet> or override C vfuncs, you *must* replace the muppet> GTypeClass with your own at the C level Clear. muppet> the basic problem is that the CellRenderer methods muppet> RENDER, START_RENDERING, etc, are virtual methods muppet> called from deep within gtk+. gtk+ looks up what C muppet> function to call in the GTypeClass (essentially a muppet> vtable) of the CellRenderer instance. if you just muppet> use normal perl derivation for the subtype, there's muppet> no way to route that call through your perl code. by muppet> using Glib::Object::Subclass, a new GType gets muppet> created for your object, and that GType carries with muppet> it a vtable that marshals those virtual method calls muppet> to perl. Also clear. muppet> SimpleList/SimpleTree don't do this because they muppet> don't need to -- because your perl code initiates the muppet> relevant method calls. custom CellRenderers and muppet> TreeModels simply will not work without Subclass, muppet> because the perl code you want called must be muppet> triggered from C. The missing bits ! Ok, I understand the principle, now I have to match it every time :o) Now, can you tell me why I can't add a subroutine called 'new' which act as a constructor when I use the Glib::Object::Subclass approach. And can you confirm that I am still free to add any fields in the blessed hash (except when they are already used). muppet> you can still define a new() for your CellRenderer muppet> class, But when I tried to define such a subroutine, it looks like either she didn't get called or the object was not created correctly. I stop testing this approach but I can spend some more hours on it if you think it *should* work. muppet> but SimpleList/SimpleTree will not pass parameters to muppet> it. >> Anyway as SLT only provide a way to define the *type* of >> the renderer and not an instance or a sub returning an >> instance of a renderer... muppet> the callback approach would be pretty interesting; at muppet> the risk of feature creep, we could have the tree muppet> construction code check whether the renderer type key muppet> is ref($val) eq 'CODE'... That was the idea, but I hesitate to propose it in the first place because I didn't know which weight you had put in the 'Simple' word. >> In the end, I just build an SLT, access the renderer, set >> the completion model, and associate it to the underlying >> Entry widget in START_EDITING. I just wonder if things can >> be done more efficiently. muppet> you do need to create a new editable in each muppet> invocation of START_EDITING, so that's alright. you muppet> could avoid common work by placing that in muppet> INIT_INSTANCE or set_completion_model(). in fact, i muppet> see that you load a PhD::TBL, but don't see where you muppet> use it; is that something important? Sorry, I missed that when cleaning code. Forget it, it predates set_completion_model, it was just a quick and dirty trick to test. The completion model is a ListStore as required, built from a list of strings. muppet> also, do you really want to use the same completion muppet> model for every row in a column? No. The completion model is specific to each column. muppet> how are you creating that model? my $ls = Gtk2::ListStore->new('Glib::String') ; $ls->set($ls->append,0,'ALL') ; map {$ls->set($ls->append,0,$_)} qw{foo bar baz}; muppet> is it something that could be placed in muppet> INIT_INSTANCE, or are you filling it with external muppet> data? It's filled with external data. The data do not change during the Simple::List lifetime. So my hope was to be able to give it as a parameter at Simple::List build time instead of doing : my $list = Gtk2::Ex::Simple::List->new_from_treeview(blah blah blah) my $column = $list->get_column(index for a completion column) ; # Only one renderer my $cell_renderer = $column->get_cell_renderers; $cell_renderer->set_completion_model($ls) ; Vincent From v.ladeuil@alplog.fr Tue Oct 26 09:52:38 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A44313B0C5B for ; Tue, 26 Oct 2004 09:52:38 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00452-07 for ; Tue, 26 Oct 2004 09:52:37 -0400 (EDT) Received: from smtp-out.completel.net (unknown [195.167.192.116]) by menubar.gnome.org (Postfix) with ESMTP id 11E613B12ED for ; Tue, 26 Oct 2004 09:52:37 -0400 (EDT) Received: from dune.alplog.net (unknown [195.167.225.14]) by smtp-out.completel.net (Postfix) with ESMTP id 3793E25C22C; Tue, 26 Oct 2004 15:52:37 +0200 (CEST) Received: by dune.alplog.net (Postfix, from userid 1000) id B2516186A5; Tue, 26 Oct 2004 15:52:54 +0200 (CEST) To: Carl Nygard References: <20040921180253.M43222@adis.com.br> <1095794238.4992.13.camel@traveler> <553FCEF6-0C11-11D9-B641-000A9580E5E0@asofyet.org> <1095802980.4992.18.camel@traveler> From: Vincent LADEUIL Date: 26 Oct 2004 15:52:54 +0200 In-Reply-To: <1095802980.4992.18.camel@traveler> Message-ID: <873c01zivd.fsf@dune.alplog.net> Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org Cc: muppet , gtk-perl mailing list Subject: Re: Events and Signals X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 13:52:38 -0000 >>>>> "Carl" == Carl Nygard writes: Carl> On Tue, 2004-09-21 at 17:00, muppet wrote: >> On Sep 21, 2004, at 3:17 PM, Carl Nygard wrote: >> there's a different project, based in C, that wants to use >> the XTest extension and actually implement event recording >> and playback; can't remember the name at the moment, but i >> remember discussing it on gtk-devel-list. Carl> You thinking about Xnee? Whatever the project is, I may be able to spend some time (from now until may 2005 and may be december 2005) on a solution allowing to test some Gtk2 perl scripts (record *and* playback). So keep me informed if you need some manpower. Thanks in advance, Vincent From scott@asofyet.org Tue Oct 26 11:06:44 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B2E303B1395 for ; Tue, 26 Oct 2004 11:06:44 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04016-09 for ; Tue, 26 Oct 2004 11:06:40 -0400 (EDT) Received: from sanrio.sd.dreamhost.com (sanrio.sd.dreamhost.com [66.33.201.158]) by menubar.gnome.org (Postfix) with ESMTP id 80F5B3B138E for ; Tue, 26 Oct 2004 11:06:40 -0400 (EDT) Received: from webmail.asofyet.org (localhost [127.0.0.1]) by sanrio.sd.dreamhost.com (Postfix) with SMTP id 8642D98710 for ; Tue, 26 Oct 2004 08:06:39 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user scott@asofyet.org) by webmail.asofyet.org with HTTP; Tue, 26 Oct 2004 11:06:39 -0400 (EDT) Message-ID: <34295.192.146.101.26.1098803199.spork@webmail.asofyet.org> In-Reply-To: <87r7nlzkpy.fsf@dune.alplog.net> References: <1096248219.29860.13.camel@beta.local><874qkh23c0.fsf@dune.alplog.net> <87r7nlzkpy.fsf@dune.alplog.net> Date: Tue, 26 Oct 2004 11:06:39 -0400 (EDT) From: "muppet" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Gtk2::Ex::Simple::(List|Tree) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 15:06:44 -0000 Vincent LADEUIL said: > Sorry, should have made myself clearer: The example script > simple_tree.pl calls the unimplemented get_selected_indices. I > didn't need it myself. oh. that's a bug. :-) > Now, can you tell me why I can't add a subroutine called 'new' > which act as a constructor when I use the Glib::Object::Subclass > approach. how are you writing your new()? a traditional perl "bless {}, $class" won't work, because you have to trigger the underlying call to g_object_new(). the new() supplied by Glib::Object::Subclass (actually Glib::Object::new()) allows you to use a perlish construction idiom (named parameters), so long as your class defines a GObject property for each thing you want to set. for example, in histogramplot.pl (http://gtk2-perl.sourceforge.net/doc/examples/histogramplot.pl.html), the driver code instantiates the widget with my $plot = Histogram::Plot->new ( threshold => 64, histogram => [ map { sin $_/256*3.1415 } (0..255) ], ); but there is no new() defined in the derived class; the class uses Glib::Object::new(), which treats each parameter pair as a call to Glib::Object::set(). 'threshold' and 'histogram' are object properties defined in the import arguments for Glib::Object::Subclass. this is the paradigm you should usually follow when using Glib::Object::Subclass --- your object should be reasonably functional without overriding new(). why? because subclassers are not forced to chain up to your constructor! you should do all relevant initialization in INIT_INSTANCE, and provide object properties (optionally with setters and getters) for the things the user of your code can set. given all that, if you *still* want to create your own new() (e.g., to have a "convenience constructor" like the ones used by most gtk+ widgets, you'd do it like this: sub new { my ($class, $something) = @_; # we can't do $class->new(), because we're overriding that. # we could do $class->SUPER::new() if we knew its call signature. # instead, i'll go straight to Glib::Object::new, because i know # it will call each INIT_INSTANCE in the ancestry to initialize # the object properly. return Glib::Object::new ($class, something => $something); } but, if you think about it for a while, that's actually not a great idea, and it would be better to use the stock new(). this is one of the rough spots where the paradigms of GObject and perl clash somewhat, and the intricacies of GObject derivation and instantiation stem from that clash. > And can you confirm that I am still free to add any fields in the > blessed hash (except when they are already used). yes. the GObject and the Perl object are tied with magic (yes, that's the technical term :) under the hood to ensure that you will always see the same perl reference for the same GObject (and vice-versa), and the data you place in the hash will stay with the object. the normal warnings about reference-count cycles in perl data structures are critically important with Gtk2-Perl. > >> Anyway as SLT only provide a way to define the *type* of > >> the renderer and not an instance or a sub returning an > >> instance of a renderer... > > muppet> the callback approach would be pretty interesting; at > muppet> the risk of feature creep, we could have the tree > muppet> construction code check whether the renderer type key > muppet> is ref($val) eq 'CODE'... > > That was the idea, but I hesitate to propose it in the first > place because I didn't know which weight you had put in the > 'Simple' word. personally, i feel that when it starts getting this complicated, it's no longer worth using the Simple modules -- it's actually harder to document and maintain than just using the raw MVC TreeView directly. however, i'm not maintaining the Gtk2::Ex::Simple stuff, so i'll leave it for ross to decide on such a feature. i seem to recall a proposal to break the tied model stuff out separate from SimpleList to allow you to still have simple tied data access with complex, hand-created views... something like this should work: my $model = Gtk2::ListStore->new ('Glib::String'); my $view = Gtk2::TreeView->new ($model); # set up the view columns and renderers as you like # tie the model to an array for easy access my @data; tie @data, 'Gtk2::Ex::Simple::TiedList', $model; # now put data in the model push @data, qw(fee fie foe fum); > It's filled with external data. The data do not change during the > Simple::List lifetime. So my hope was to be able to give it as a > parameter at Simple::List build time instead of doing : > > my $list = Gtk2::Ex::Simple::List->new_from_treeview(blah blah blah) > > my $column = $list->get_column(index for a completion column) ; > # Only one renderer > my $cell_renderer = $column->get_cell_renderers; > $cell_renderer->set_completion_model($ls) ; the way i see it, that's pretty much your only option. -- muppet From kaffeetisch@gmx.de Tue Oct 26 11:15:22 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA2613B1302 for ; Tue, 26 Oct 2004 11:15:22 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04545-04 for ; Tue, 26 Oct 2004 11:15:20 -0400 (EDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by menubar.gnome.org (Postfix) with SMTP id C62E33B0DB7 for ; Tue, 26 Oct 2004 11:15:19 -0400 (EDT) Received: (qmail 31837 invoked by uid 65534); 26 Oct 2004 15:15:18 -0000 Received: from pD95696D4.dip.t-dialin.net (EHLO router.dialin.t-online.de) (217.86.150.212) by mail.gmx.net (mp021) with SMTP; 26 Oct 2004 17:15:18 +0200 X-Authenticated: #2092818 From: Torsten Schoenfeld To: gtk-perl-list@gnome.org In-Reply-To: References: <1098731268.2863.5.camel@localhost> Content-Type: text/plain Date: Tue, 26 Oct 2004 17:15:16 +0200 Message-Id: <1098803716.3142.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Gnome2::Wnck 0.08 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 15:15:22 -0000 On Mon, 2004-10-25 at 17:32 -0400, Yaakov Selkowitz wrote: > | Overview of changes in Gnome2-Wnck 0.08 > | ======================================= > > This version fails some tests with libwnck-2.8.1 on Cygwin. something I > don't remember it doing before. Output of 'make test' is attached. Ah, yeah. I forgot to update one of the many skip counts in there. Thanks for reporting. -- Bye, -Torsten From scott@asofyet.org Tue Oct 26 12:28:40 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 950883B1309 for ; Tue, 26 Oct 2004 12:28:40 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09179-02 for ; Tue, 26 Oct 2004 12:28:38 -0400 (EDT) Received: from sanrio.sd.dreamhost.com (sanrio.sd.dreamhost.com [66.33.201.158]) by menubar.gnome.org (Postfix) with ESMTP id 26FF63B13B1 for ; Tue, 26 Oct 2004 12:28:38 -0400 (EDT) Received: from webmail.asofyet.org (localhost [127.0.0.1]) by sanrio.sd.dreamhost.com (Postfix) with SMTP id 67DC998710 for ; Tue, 26 Oct 2004 09:28:37 -0700 (PDT) Received: from 192.146.101.26 (SquirrelMail authenticated user scott@asofyet.org) by webmail.asofyet.org with HTTP; Tue, 26 Oct 2004 12:28:37 -0400 (EDT) Message-ID: <31417.192.146.101.26.1098808117.spork@webmail.asofyet.org> In-Reply-To: <34295.192.146.101.26.1098803199.spork@webmail.asofyet.org> References: <1096248219.29860.13.camel@beta.local><874qkh23c0.fsf@dune.alplog.net><87r7nlzkpy.fsf@dune.alplog.net> <34295.192.146.101.26.1098803199.spork@webmail.asofyet.org> Date: Tue, 26 Oct 2004 12:28:37 -0400 (EDT) From: "muppet" To: gtk-perl-list@gnome.org User-Agent: DreamHost Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Gtk2::Ex::Simple::(List|Tree) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2004 16:28:40 -0000 muppet said: > how are you writing your new()? a traditional perl "bless {}, $class" won't > work, because you have to trigger the underlying call to g_object_new(). and, as i forgot to mention, simply re-blessing does not change the underlying GType of the object. -- muppet From dkasak@nusconsulting.com.au Tue Oct 26 21:01:58 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1F69B3B068A for ; Tue, 26 Oct 2004 21:01:58 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27693-02 for ; Tue, 26 Oct 2004 21:01:56 -0400 (EDT) Received: from screamer.nusconsulting.com.au (mail.nusconsulting.com.au [203.191.186.114]) by menubar.gnome.org (Postfix) with ESMTP id 8AA2B3B0708 for ; Tue, 26 Oct 2004 21:01:55 -0400 (EDT) Received: from [10.146.1.25] (dkasak.nusconsulting.com.au [10.146.1.25]) by screamer.nusconsulting.com.au (8.12.10/8.12.10) with ESMTP id i9R142Il025515 for ; Wed, 27 Oct 2004 11:04:06 +1000 Message-ID: <417EF414.2080204@nusconsulting.com.au> Date: Wed, 27 Oct 2004 11:04:20 +1000 From: Daniel Kasak User-Agent: Mozilla Thunderbird 0.8 (X11/20040916) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gtk-perl-list@gnome.org References: <417DE635.6040206@nusconsulting.com.au> <571A6EDE-2747-11D9-83FE-000A9580E5E0@asofyet.org> In-Reply-To: <571A6EDE-2747-11D9-83FE-000A9580E5E0@asofyet.org> Content-Type: multipart/mixed; boundary="----------=_1098839046-7613-52" X-Canit-Stats-ID: 121903 - 01f9b12468d0 X-Scanned-By: CanIt (www . canit . ca) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: segfault on exit? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 01:01:58 -0000 This is a multi-part message in MIME format... ------------=_1098839046-7613-52 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline muppet wrote: > > On Oct 26, 2004, at 1:52 AM, Daniel Kasak wrote: > >> to the app's menu's 'destroy' signal. >> Is this something to worry about or not? Is there something I'm >> supposed to do other than 'exit'? > > > using exit() shouldn't be a problem. > > a stack trace would help. you can get one from a core file. > > > $ ulimit -c unlimited # drop a core file on segfaults > $ perl yourscript.pl # run it to make it segfault > $ gdb perl corefile > (gdb) backtrace > [send this text] > (gdb) backtrace #0 0x486ce951 in g_signal_has_handler_pending () from /usr/lib/libgobject-2.0.so.0 #1 0x486ef0c4 in g_param_spec_types () from /usr/lib/libgobject-2.0.so.0 #2 0x2000000b in ?? () #3 0x00000000 in ?? () #4 0x00000000 in ?? () #5 0x0815c198 in ?? () #6 0x00000008 in ?? () #7 0x0815c180 in ?? () #8 0xbfffed73 in ?? () #9 0x6d6d6f63 in ?? () #10 0x3a3a6e6f in ?? () #11 0xbfffec00 in ?? () #12 0x080be4bd in Perl_hv_fetch () #13 0x081580a8 in ?? () #14 0xbfffed80 in ?? () #15 0xbfffece0 in ?? () #16 0x0000000b in ?? () #17 0x481ea881 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 Previous frame inner to this frame (corrupt stack?) (gdb) Is this all you need? I compile everything with -O3 here, and I've read that this makes debugging harder. I can recompile with -O2 if necessary - I have no idea what the above is talking about, but there are a lot of ?? () ... maybe this is the reason? -- Daniel Kasak IT Developer NUS Consulting Group Level 5, 77 Pacific Highway North Sydney, NSW, Australia 2060 T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989 email: dkasak@nusconsulting.com.au website: http://www.nusconsulting.com.au ------------=_1098839046-7613-52 Content-Type: text/html; name="CANIT-VOTING-LINKS-121903-01f9b12468d0.html" Content-Disposition: inline; filename="CANIT-VOTING-LINKS-121903-01f9b12468d0.html" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.411 (Entity 5.404) CanIt Vote for ID 121903

The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote
------------=_1098839046-7613-52-- From scott@asofyet.org Tue Oct 26 22:47:26 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9A0F23B06F7 for ; Tue, 26 Oct 2004 22:47:26 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31859-04 for ; Tue, 26 Oct 2004 22:47:24 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id 5E1313B09EE for ; Tue, 26 Oct 2004 22:47:24 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by merry.dreamhost.com (Postfix) with ESMTP id 4DEA317511E for ; Tue, 26 Oct 2004 19:47:23 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <417EF414.2080204@nusconsulting.com.au> References: <417DE635.6040206@nusconsulting.com.au> <571A6EDE-2747-11D9-83FE-000A9580E5E0@asofyet.org> <417EF414.2080204@nusconsulting.com.au> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <8CCBC678-27C2-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Tue, 26 Oct 2004 22:47:32 -0400 To: gtk-perl mailing list X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: segfault on exit? X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 02:47:26 -0000 On Oct 26, 2004, at 9:04 PM, Daniel Kasak wrote: [snip stack trace from binaries without debugging symbols] > Is this all you need? I compile everything with -O3 here, and I've > read that this makes debugging harder. I can recompile with -O2 if > necessary - I have no idea what the above is talking about, but there > are a lot of ?? () ... maybe this is the reason? -O3 unrolls loops, inlines functions, and reorders assembly instructions for better performance, and those things can make debugging difficult. the reason you have a lot of ??() and such is that none of your binaries have been built with -g, which enables gdb debugging info (debugging info makes the binaries a lot bigger) --- which means that trace isn't very helpful at all. if you can send me your script off-list (preferably the smallest version of the script that still exhibits the problem), i'll see if i can reproduce it here on my system with all the debugging stuff available. -- Without treatment, a common cold will last about seven days. With treatment, it will last about a week. -- conventional wisdom From dmitriyk@genphys.phys.msu.ru Wed Oct 27 05:04:32 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AB7B3B0B93 for ; Wed, 27 Oct 2004 05:04:32 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14100-03 for ; Wed, 27 Oct 2004 05:04:28 -0400 (EDT) Received: from genphys.phys.msu.ru (genphys.phys.msu.ru [193.232.125.10]) by menubar.gnome.org (Postfix) with ESMTP id 1BBAB3B067D for ; Wed, 27 Oct 2004 05:04:28 -0400 (EDT) Received: from genphys.phys.msu.ru (mobile100 [10.0.0.6]) by genphys.phys.msu.ru (8.11.3/8.11.3) with ESMTP id i9R94Np02413; Wed, 27 Oct 2004 13:04:24 +0400 (MSD) (envelope-from dmitriyk@genphys.phys.msu.ru) Message-ID: <417F9D41.8040307@genphys.phys.msu.ru> Date: Wed, 27 Oct 2004 13:06:09 +0000 From: Dmitriy Kuvshinov User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.6) Gecko/20040331 X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: muppet References: <3F1F207B.8060303@genphys.phys.msu.ru> <417CDBA9.3070109@genphys.phys.msu.ru> <5CA000C6-2750-11D9-83FE-000A9580E5E0@asofyet.org> In-Reply-To: <5CA000C6-2750-11D9-83FE-000A9580E5E0@asofyet.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: transparent layer over image X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 09:04:32 -0000 hello! > if you already have XS code in your module, then it will be much > easier for you to draw on the image in C. After insert #include "gtk2-perl.h" in my *.xs, system cannot find path for header files like gperl.h or gtk/gtk.h (bit i see it *.h files in /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/Gtk2) ... :( > you can pass the GdkPixbuf to your xsub, draw on it in C (where there > is no need to copy data, unpack/pack pixels, and all that mess), and > then display the pixbuf from perl. it's nice way, but i has some error... :( > to do this you'll need to #include in your XS file, so > that your code will know how to extract the GdkPixbuf* from the > Gtk2::Gdk::Pixbuf reference. you can use ExtUtils::Depends to find > the necessary CFLAGS and typemaps. ... dmitriy From scott@asofyet.org Wed Oct 27 08:09:08 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E66473B07A3 for ; Wed, 27 Oct 2004 08:09:07 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22773-10 for ; Wed, 27 Oct 2004 08:09:06 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id 272743B07FD for ; Wed, 27 Oct 2004 08:09:06 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by smeagol.dreamhost.com (Postfix) with ESMTP id F1807238D3; Wed, 27 Oct 2004 05:09:04 -0700 (PDT) In-Reply-To: <417F9D41.8040307@genphys.phys.msu.ru> References: <3F1F207B.8060303@genphys.phys.msu.ru> <417CDBA9.3070109@genphys.phys.msu.ru> <5CA000C6-2750-11D9-83FE-000A9580E5E0@asofyet.org> <417F9D41.8040307@genphys.phys.msu.ru> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <041CED43-2811-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Wed, 27 Oct 2004 08:09:13 -0400 To: Dmitriy Kuvshinov X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: gtk-perl-list@gnome.org Subject: Re: transparent layer over image X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 12:09:08 -0000 On Oct 27, 2004, at 9:06 AM, Dmitriy Kuvshinov wrote: >> if you already have XS code in your module, then it will be much >> easier for you to draw on the image in C. > > After insert #include "gtk2-perl.h" in my *.xs, system cannot find > path for header files like > gperl.h or gtk/gtk.h (bit i see it *.h files in > /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi/Gtk2) > ... :( this was why i mentioned ExtUtils::Depends. it's entire purpose is to find include paths and typemaps for other XS modules, and turn that information into something that WriteMakefile can use. in your Makefile.PL, you'd do something like this: use ExtUtils::Depends; # create an EU::Depends module that depends on Gtk2. # since 0.200, it chains dependencies, and will pick up Glib for you. my $dep = ExtUtils::Depends->new ('MyModule' => 'Gtk2'); $dep->add_xs (<*.xs>); # add your XS files # add your pm files; see the docs for PM in MakeMaker for more info. # note that $(INST_LIBDIR) is Makefile syntax, not perl. $dep->add_pm ('MyModule.pm' => '$(INST_LIBDIR)/MyModule.pm'); WriteMakefile ( NAME => 'MyModule', VERSION_FROM => 'MyModule.pm', $dep->get_makefile_vars, # get_makefile_vars replaces all your custom stuff like # INC, LIBS, TYPEMAPS, etc ); the various Gtk2-Perl modules' Makefile.PLs have more advanced examples. -- Examples really shouldn't include unexploded ordnance. -- Joe Smith, referring to an example program i wrote. From v.ladeuil@alplog.fr Thu Oct 28 04:48:58 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C24763B0A54 for ; Thu, 28 Oct 2004 04:48:58 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12480-01 for ; Thu, 28 Oct 2004 04:48:56 -0400 (EDT) Received: from smtp-out.completel.net (smtp-out.completel.net [83.145.110.36]) by menubar.gnome.org (Postfix) with ESMTP id 245093B08D4 for ; Thu, 28 Oct 2004 04:48:56 -0400 (EDT) Received: from dune.alplog.net (unknown [195.167.225.14]) by smtp-out.completel.net (Postfix) with ESMTP id BE22B280068 for ; Thu, 28 Oct 2004 10:48:55 +0200 (CEST) Received: by dune.alplog.net (Postfix, from userid 1000) id 3457F18665; Thu, 28 Oct 2004 10:48:59 +0200 (CEST) To: gtk-perl-list@gnome.org References: <1096248219.29860.13.camel@beta.local> <874qkh23c0.fsf@dune.alplog.net> <87r7nlzkpy.fsf@dune.alplog.net> <34295.192.146.101.26.1098803199.spork@webmail.asofyet.org> From: Vincent LADEUIL Date: 28 Oct 2004 10:48:59 +0200 Message-ID: <87r7njkz2c.fsf@dune.alplog.net> Lines: 158 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Gtk2::Ex::Simple::(List|Tree) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2004 08:48:58 -0000 >>>>> "muppet" == scott writes: muppet> Vincent LADEUIL said: >> Sorry, should have made myself clearer: The example script >> simple_tree.pl calls the unimplemented >> get_selected_indices. I didn't need it myself. muppet> oh. that's a bug. :-) :o) >> Now, can you tell me why I can't add a subroutine called >> 'new' which act as a constructor when I use the >> Glib::Object::Subclass approach. muppet> how are you writing your new()? a traditional perl muppet> "bless {}, $class" won't work, because you have to muppet> trigger the underlying call to g_object_new(). The missing bits, again :o) I search for that, but failed :-/ muppet> the new() supplied by Glib::Object::Subclass muppet> (actually Glib::Object::new()) allows you to use a muppet> perlish construction idiom (named parameters), so muppet> long as your class defines a GObject property for muppet> each thing you want to set. for example, in muppet> histogramplot.pl muppet> (http://gtk2-perl.sourceforge.net/doc/examples/histogramplot.pl.html), muppet> the driver code instantiates the widget with muppet> my $plot = Histogram::Plot->new ( threshold => 64, muppet> histogram => [ map { sin $_/256*3.1415 } (0..255) ], muppet> ); I try all the examples one by one with no particular purpose in mind. When I encounter this one, I said to myself: "Nothing for me here" and pass along... :) muppet> but there is no new() defined in the derived class; muppet> the class uses Glib::Object::new(), which treats each muppet> parameter pair as a call to Glib::Object::set(). muppet> 'threshold' and 'histogram' are object properties muppet> defined in the import arguments for muppet> Glib::Object::Subclass. ...and the missing link ! Ok, things are clear now (did I say that before ? :o) muppet> this is the paradigm you should usually follow when muppet> using Glib::Object::Subclass --- your object should muppet> be reasonably functional without overriding new(). muppet> why? because subclassers are not forced to chain up muppet> to your constructor! Yeah, the limits of mixing two OO paradigms... As far as I understand the limits, you still did a wonderful job with Gtk2, I'm still impressed by the ease of use and the perlish way of doing things... muppet> you should do all relevant initialization in muppet> INIT_INSTANCE, and provide object properties muppet> (optionally with setters and getters) for the things muppet> the user of your code can set. Enlightment ! I was under the impression that properties were column indexes for GtkTreeViewColumns, but that was just the way they were used in Mup::CellRendererPopup ! Silly me ! muppet> given all that, if you *still* want to create your muppet> own new() (e.g., to have a "convenience constructor" muppet> like the ones used by most gtk+ widgets, you'd do it muppet> like this: sub new { my ($class, $something) = @_; # we can't do $class->new(), because we're overriding that. Don't get that >-/ Did you mean you can't do $class->new($something) or just that you had added a parameter ? # we could do $class->SUPER::new() if we knew its call signature. # instead, i'll go straight to Glib::Object::new, because i know # it will call each INIT_INSTANCE in the ancestry to initialize # the object properly. I'm sure I had already read that comment somewhere, I searched for it whereever I can think of, Gtk2 doc, tutorial, examples, can't put my finger on it ! Thanks so much :o) But it means, that it works for only one level of perl inheritance isn't it ? return Glib::Object::new ($class, something => $something); } >> And can you confirm that I am still free to add any fields >> in the blessed hash (except when they are already used). muppet> yes. Good. muppet> the GObject and the Perl object are tied with magic muppet> (yes, that's the technical term :) ;) muppet> under the hood to ensure that you will always see the muppet> same perl reference for the same GObject (and muppet> vice-versa), and the data you place in the hash will muppet> stay with the object. the normal warnings about muppet> reference-count cycles in perl data structures are muppet> critically important with Gtk2-Perl. Hmmmm, rings a bell... http://www.catb.org/~esr/jargon/html/koans.html#id3141202 One day a student came to Moon and said: "I understand how to make a better garbage collector. We must keep a reference count of the pointers to each cons." Moon patiently told the student the following story: "One day a student came to Moon and said: `I understand how to make a better garbage collector... muppet> personally, i feel that when it starts getting this muppet> complicated, it's no longer worth using the Simple muppet> modules -- it's actually harder to document and muppet> maintain than just using the raw MVC TreeView muppet> directly. however, i'm not maintaining the muppet> Gtk2::Ex::Simple stuff, so i'll leave it for ross to muppet> decide on such a feature. I agree, I can't find a solution which do not render the interface complicated :( muppet> i seem to recall a proposal to break the tied model muppet> stuff out separate from SimpleList to allow you to muppet> still have simple tied data access with complex, muppet> hand-created views... something like this should muppet> work: Thanks. muppet> the way i see it, that's pretty much your only muppet> option. Ok, thanks a million for that, I am already happy with the present available solutions, and you clarify my other concerns, Vincent From scott@asofyet.org Thu Oct 28 08:40:46 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E26853B0A4B for ; Thu, 28 Oct 2004 08:40:45 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22769-05 for ; Thu, 28 Oct 2004 08:40:40 -0400 (EDT) Received: from pippin.dreamhost.com (pippin.dreamhost.com [66.33.211.27]) by menubar.gnome.org (Postfix) with ESMTP id 0D7D13B0A70 for ; Thu, 28 Oct 2004 08:40:22 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by pippin.dreamhost.com (Postfix) with ESMTP id C3D9016D215 for ; Thu, 28 Oct 2004 05:40:18 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <87r7njkz2c.fsf@dune.alplog.net> References: <1096248219.29860.13.camel@beta.local> <874qkh23c0.fsf@dune.alplog.net> <87r7nlzkpy.fsf@dune.alplog.net> <34295.192.146.101.26.1098803199.spork@webmail.asofyet.org> <87r7njkz2c.fsf@dune.alplog.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <8CA3BBCC-28DE-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Thu, 28 Oct 2004 08:40:29 -0400 To: gtk-perl mailing list X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Subject: Re: Gtk2::Ex::Simple::(List|Tree) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2004 12:40:46 -0000 On Oct 28, 2004, at 4:48 AM, Vincent LADEUIL wrote: > The missing bits, again :o) I search for that, but failed :-/ [snip] > ...and the missing link ! Ok, things are clear now (did I say > that before ? :o) [snip] > Enlightment ! do you have suggestions for where or how this should be explained in the documentation? i think i am too familiar with it to understand fully how to explain it to the uninitiated -- at least, our current docs reflect that. > sub new { > my ($class, $something) = @_; > # we can't do $class->new(), because we're overriding that. > > Don't get that >-/ Did you mean you can't do > $class->new($something) or just that you had added a parameter ? perl method lookup is done purely at runtime, *after* the compile phase, and is done purely on name, not parameters (as in C++). so in Foo::bar(), a call to Foo::bar() will resolve to the exact same function -- you'll call yourself indefinitely. Foo::SUPER::bar() will skip Foo::bar() while looking through @ISA for bar(), but i explained next why i decided not to do that. > # we could do $class->SUPER::new() if we knew its call > signature. > # instead, i'll go straight to Glib::Object::new, because i know > # it will call each INIT_INSTANCE in the ancestry to initialize > # the object properly. > > I'm sure I had already read that comment somewhere, I searched > for it whereever I can think of, Gtk2 doc, tutorial, examples, > can't put my finger on it ! Thanks so much :o) i would've sworn that was mentioned in either http://gtk2-perl.sourceforge.net/doc/pod/Glib/Object/Subclass.html or http://gtk2-perl.sourceforge.net/doc/subclassing_widgets_in_perl.html , but apparently i was wrong; it seems to be assumed or inferred. it is explained in the gtk+ documentation, but i doubt many perl programmers will read about the guts of doing OO in C. ;-) > But it means, that it works for only one level of perl > inheritance isn't it ? GObject only allows single inheritance; that means one parent at a time, e.g., only one GObject in @ISA; GObject uses Interfaces in place of multiple inheritance, but the perl bindings just use perl's @ISA. you can, however, derive a new perl gobject from a perl-derived gobject; the Glib test suite verifies this. everything is based on package names, and the fact that INIT_INSTANCE and friend are called from C when g_object_new() walks the ancestry. wow, that's not very clear. sorry. -- Without treatment, a common cold will last about seven days. With treatment, it will last about a week. -- conventional wisdom From rwmcfa1@neces.com Thu Oct 28 20:42:46 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 162783B0F7C for ; Thu, 28 Oct 2004 20:42:46 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25353-06 for ; Thu, 28 Oct 2004 20:42:44 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id E7BC93B0F62 for ; Thu, 28 Oct 2004 20:42:43 -0400 (EDT) Received: from [192.168.1.45] (12-222-230-66.client.insightBB.com [12.222.230.66]) by smeagol.dreamhost.com (Postfix) with ESMTP id D58AC2383C for ; Thu, 28 Oct 2004 17:42:42 -0700 (PDT) From: Ross McFarland To: Gtk-Perl-List Content-Type: text/plain Message-Id: <1099010561.22922.33.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 28 Oct 2004 20:42:42 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Subject: Gtk2::GLExt 0.90 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 00:42:46 -0000 Gtk2::GLExt binds the GtkGLExt library which provides OpenGL capabilities. see http://gtkglext.sourceforge.net/ for more information. The package is available from: http://sourceforge.net/project/showfiles.php?group_id=64773&package_id=111623&release_id=278687 Overview of changes in Gtk2-GLExt 0.90 ====================================== * Prep for beta release, mostly build related. -- -rm http://www.neces.com/ From w.weide@hccnet.nl Fri Oct 29 06:48:17 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4309E3B0F74 for ; Fri, 29 Oct 2004 06:48:17 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17939-04 for ; Fri, 29 Oct 2004 06:48:14 -0400 (EDT) Received: from smtp08.wanadoo.nl (smtp08.wanadoo.nl [194.134.35.149]) by menubar.gnome.org (Postfix) with ESMTP id 652263B15FB for ; Fri, 29 Oct 2004 06:48:13 -0400 (EDT) Received: from [192.168.7.10] (c53750b82.cable.wanadoo.nl [83.117.11.130]) by smtp8.wanadoo.nl (Postfix) with ESMTP id 413215E9CB for ; Fri, 29 Oct 2004 12:48:12 +0200 (CEST) From: Wim Weide To: Gtk-Perl-List Content-Type: multipart/mixed; boundary="=-fVW25Zidiih4jIVu40iJ" Message-Id: <1099046887.2117.41.camel@speedy.weide.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6-1mdk Date: Fri, 29 Oct 2004 12:48:07 +0200 X-Virus-Scanned: by amavisd-new at gnome.org Subject: Installation problem Gtk2 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 10:48:17 -0000 --=-fVW25Zidiih4jIVu40iJ Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, I want to use the LDS application (listed on the gtk2-perl page). But the gtk2 module will not install, due too many errors in the test phase. My base system is MDK 10.0 On top of that I installed the following packages (in this order): pkgconfig-0.15.0 jpegsrc.v6b libpng-1.2.5 tiff-v3.6.1 glib-2.4.7 pango-1.4.1 atk-1.6.1 gtk+-2.4.13 Then I used "perl -MCPAN -e 'install ..." to install the following modules: ExtUtils::PkgConfig, ExtUtils::Depends, Glib and Gtk2. Compiling of the Gtk2 was Ok, but during the testphase the it stops. (see attachment) am I missing some packages? Do I need another base system (e.g.Fedora)? Can you give me a help on this one? TIA. regards, Wim Weide. --=-fVW25Zidiih4jIVu40iJ Content-Disposition: attachment; filename=perlgtk2install.log.gz Content-Type: application/x-gzip; name=perlgtk2install.log.gz Content-Transfer-Encoding: base64 H4sICN0YgkECA3BlcmxndGsyaW5zdGFsbC5sb2cA3Vz9c7M2Ev7df4UmvRsn7wQwYIjtmWsnb76a Nh/vOOn1ep0bn2xkmxojBkQS319/KzAfBkHdO2PeaWaScVih51mxu1pJa1au7SFZljudR+za843t LtDUsafKGru6csdW2mj0Sj7YI/ZXsu6ta5rdWavR6Jq82TMStURICQNfmdoutFoRhCQJPf/YGYeu y2+PrjESsM6Xm/HD5Pph8vT89HD5z1/+pmY3esR3DHkg6+hEerz5YD8x2wlGoyu6BmBrNHp8PAEJ gT+8p8kS+y4JgtPeOepG9OC3m3zG/mzZPTtBTPkksw5Tej2ZE5cFP3Bd+vly/HT/dIc+fRqhn1w8 dYAtRQ6dYQaflmRNEHEXtkuQ7aI1tUKHTDzMliN0ssAO/ticnCPMUIbDkMNbX2hy5xv0QOkqgAsw BhsaIs/BrksspBvRkARoGjJEXWeDfOwiTXCLHzVElg13/RbCJzxnxI+aWuHUpmEADyD+eeUNfcJC n0MEDLMwQJphoNN3/g8yDW0AI9b7mM97vbPOywzo+2hOQ9dC70viE0ThOWBGfUQ+PDJj0Avcdkre sINUQz+LFVPPkUvgxpOu7bIuQn+ZTKDBSUrj9NEOAv7k096mZE6h96Tpd2ed6/ubaxndXt4/3Fxv R0LTJd1IO7nFtgPwqq4kQ3WOTE0emH9FdIU3/LGqfLh/tl2Lvjf6WPM422er9uUOXXESGhdeUZdh uO7nSURy8BW54uegJDnOlpuZcINrV9ShvgA7lYd+IGqQyK/tACx283tyiBV4kdc+lbvWUXTnOInb RdonZjRQ1CEKVrbnEWuE5vAQJ+/Rk8z8xKXIAvuyXcxs6qJYfB7fxK0YqGwtlC0BzyVwD3XJVkEf v3PqjSuY4GRa3j3YU+nuefobOKp0Nb5/vb+6fIjA5uA6aEEjiTwbbU3WMFV0upjElyc+mZ+NEA4C 4kdq//tucv8yef78w83VKzqNG5110Tx2wyoapil3ytAedhdUinVL8c0BOp1EkkksmQRL7G3/7lL5 cvl098zp3D4/AZk5eNd+VG7G4+dxxiPqOiVwAXEwxi9Dxn2PYHycjbcMpG/dcD2JP6NvUe+sFrUy yKuqKMgP947xw/87xAvCrNqTVLUYZjUl4XqOBqo80NIoCzrfvBGXiYNI0o2qqL1B5mcBYYy7zgK8 wKIhjJc0c+zZSmI2GL1LGW/xXdz73dVxwiPgbJ+ZZmYB8t71QnYE9BhnS0A3MgI/kk0g10ToL/bH NJzXytfYa16BLc5OkI0FPp/m2aZxAglOmcKYLMCJq8dovJgexcQ4Tpndy8wnpIbdC3Eg1pYVODS7 DCcxw15G8u92EGKnmqQwzcrJ/6GqRxlijlMcYra6nM2Ic+fT0GsSfQcnSQS1AosHPCWOaIy28sey s2ZyJjTjw2uRtwJtZxy5pDyQqdzis9O6NB2kcsdeuGVxJvd9kRFl8oCvOm59vCZC+WfbleWa+z/T j3p5yNgxRniLU1wspJIyz0R+hR3iWtiv0uCKOM6NZbNiznloDXZwtnr09UwPLn/AkLqwap5j0AQW lX7TPFOcLU9DbSM5FnNRVb2lDLmGT9Npcg10Za48FO6H7L8d0kSqrEvDYqJ8oQyTPFnTZC2XJ+8q nU/bRD7Bt9rqfOaVLhaJh6fyJZmJQtiO/JG44T0ja5Hcsb0pxb7VcPTLcJJEw8wFDr4jIVDi4CRy OMlM12spLoiptBUVxGyOEBPEwHUOvt03tBma0dCxEEw3sIxC2N2wJawv9/X5xOMNVeP+rlWtjKVB 0d0HyiBx957c6+14O1dHkLs3Ysil3P2i4FFpg2sbO3TRPJEtjojOekrl5nOsGCeZW4oEBJlgUX7j Mn/TNMEUJ50Ec0RD/40cY6QiHMGCJbOVZgns2gpn0EYY3mWh9VuLwGUizQffMmb1ruVAlIr1907F +k2kYoakloKz2lfUQWU2dpyjB1Y4evgmTzAantNcK5wkROrZtuXrkqDYYJEduF0YTTKHFta+HfX3 6KjwnLfWqG1Hls6RceCJVJf65Q3m7BSvOJPyPXWYzS99goUBW7TebeJJFte7gyxSFueKxijk54qL duLkDge9veVriUfzUbIEWR0k9a/0aEcveh4EST11vaGs6XnXixSGRMVzyE4W24hd53CSVCDvYvyU qSZtu/mAx2uRyp2xW9D2aklpUGhyaFXyOIKkLifeSa8apFFIr1pa5dYSaimE1HJqPpzUwn9N616z GDRMxaxa9+aU+tm2FoQ1b+BbnNzg5b0NflkxLOTlovO1JsiK1uhtOaKIS4s+KKJzHPcTIX9NnqeW dpjVIS9ZqnS+D2LVHHDdwiMQHXId3N4zHNEcCNKjeN0OTsteJ+Kituh2VXyO4HdV0H/mw5/yofWu Z97h9RoLdvwO7RM5HMGOX1WxVSL/HlJsh1QfT39fccKeycXn26n8C3ZFASyVj0E3v0bOa5ZJrdyn jjPFfpWceDiqSRbL72fUvcUzkG8afUp5nPJuA5e+8g4b3m3IcPJbswWQq2ge5DV7vHo2qoa14T7U DRidrSbEsllXjrafuksQONTvxjw67ziI74sKzIkNV/1z5BEfQksQ+X9USwv0bRec0nFg2pU7v8D1 Gbg/ZHwIwyzsbdDcp+tR6oxLxryRosx9uJkEK0Y9mfoL5YXO2Tv2icLZSREDxYcohAMSVGusD3bK hU1FNbIyRgeCT+hNInXTWAK6kHmhPNjn326IAdZ4cYw9/RgnKXjIFWZEAsEhcCMEUpzyMVBU8Cg4 YDg4jxxOuxmAmElL07+YTPNzvxj3a8m4UanwWVXUqlz73n2zA7u873x4C05wBF4EznWU+SiHk8xH ZvVpxm5znC7ML/7nY42qHgeH7lEzfrfHK8z/m/EJaU3YklroBPqx32BcTyA9BdOMJwHeGL1hJyR1 46hqdZmv0ROlvhd7p74XzaS+/XN0IRm90l6yqSSEzyFhSfwFnTok4D64nTnjFiO4wKXnqM9bnsUW LaiPbcSiYxxBeYCoajGfAj7YAXuBB0gq5HzOO8a5YoTT8pF5nsNg0NpkVqTR/DRWRKz2X014WL6/ A/cb8eD+QDK0ovcaSsL2HA17sj7Iz3Zc48/luuMdsy+klCX5y5I4zhHcIsYpz5aPEIUgKy1lnYfn kMcR8LCDWd0q+YkyMgXjaDqEpDgth5ESj77RWiwRcmk+oAhhq6OKuATH3D+qmI1EFcgJylU4mmKk VTgXQ1lX82ElNrRqV3j2+DiW59RDu0IOp91VYpmI2l4lmphM894gxq1+WYLIG9S9nUFtwhc0SS/X OKWFFrou6zuFFhX7nge38xgn+XJyYQV3+vp8/XyWXyQlzbMFl5Ysj6KfBWUj1DW07vZi8loIfrHX /eO9X4h6Vw/Uu6o12bt4ZPQ/V+/RuvaPd68Luld75sH6F5pN72DdDxrtXmyWh+te/4PdV+Uc+TfS 8ABrwr3Mx3sGTzMJnaqhmzxymlWVvKZkquV6EyOtDx0M5d5wJ3b6dOFDyl1cniQ5xBhbNhV8eXZH XvO9qUhe872pSP5KqVPoI5O7i7qjv/FMPkolMuDkcpvGOtdyJ1UVx3Wp6hXHdQdXPcbZEhy2k9nt cNDM1pK6Eo/m87kSZGWUMUWpnLF3KmccPpVDZvlMIC1+GxTzuPh8mVjF9yGkBn+Ulzmw8sscNCPz yvSQuxDUSnIe1HLyw5Ms4ghK+F5sXhXMd10bHrEMR/B99lja6DpU8SllijwDb1Omoe1Y0ev0JFXu maqSvMQuuqbk2Hjr4ktrONn/EMHbLrLnS2crwiQ+dTrhosEh3cXJVYIdEEkiba3XE+R2qrjy6I1G 8DxQp8Pf1jgCqE/o1+hNi9bGxWt79i9070IA9kOPdX4FQ+78FwxnetVQUgAA --=-fVW25Zidiih4jIVu40iJ-- From bulb@ucw.cz Fri Oct 29 06:57:54 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 530FB3B09A5 for ; Fri, 29 Oct 2004 06:57:53 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18463-03 for ; Fri, 29 Oct 2004 06:57:51 -0400 (EDT) Received: from vagabond.light.src (cimice4.lam.cz [212.71.168.94]) by menubar.gnome.org (Postfix) with ESMTP id 057A43B0756 for ; Fri, 29 Oct 2004 06:57:47 -0400 (EDT) Received: from bulb by vagabond.light.src with local (Exim 3.36 #1 (Debian)) id 1CNURs-0007Sj-00; Fri, 29 Oct 2004 12:57:36 +0200 Date: Fri, 29 Oct 2004 12:57:36 +0200 From: Jan Hudec To: Wim Weide Message-ID: <20041029105735.GB20881@vagabond> References: <1099046887.2117.41.camel@speedy.weide.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0ntfKIWw70PvrIHh" Content-Disposition: inline In-Reply-To: <1099046887.2117.41.camel@speedy.weide.local> User-Agent: Mutt/1.5.6+20040907i Sender: Jan Hudec X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Installation problem Gtk2 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 10:57:54 -0000 --0ntfKIWw70PvrIHh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 29, 2004 at 12:48:07 +0200, Wim Weide wrote: > Hi, >=20 > I want to use the LDS application (listed on the gtk2-perl page). > But the gtk2 module will not install, due too many errors in the test > phase.=20 >=20 > My base system is MDK 10.0 > On top of that I installed the following packages (in this order): > pkgconfig-0.15.0 jpegsrc.v6b libpng-1.2.5 tiff-v3.6.1 > glib-2.4.7 pango-1.4.1 atk-1.6.1 gtk+-2.4.13 >=20 > Then I used "perl -MCPAN -e 'install ..." to install the following > modules: ExtUtils::PkgConfig, ExtUtils::Depends, Glib and Gtk2. > Compiling of the Gtk2 was Ok, but during the testphase the it stops. > (see attachment) >=20 > am I missing some packages? Do I need another base system (e.g.Fedora)? > Can you give me a help on this one?=20 I believe all you need is force install in CPAN. ---------------------------------------------------------------------------= ---- Jan 'Bulb' Hudec --0ntfKIWw70PvrIHh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBgiIfRel1vVwhjGURAvDiAJ9BAAyFpapgiz5YGsn5Bq+krSC/fwCfeHac z5I55CkXpnW/sWxySxWPH2g= =xlHF -----END PGP SIGNATURE----- --0ntfKIWw70PvrIHh-- From rwmcfa1@neces.com Fri Oct 29 08:16:23 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2F2263B0A14 for ; Fri, 29 Oct 2004 08:16:23 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22368-08 for ; Fri, 29 Oct 2004 08:16:21 -0400 (EDT) Received: from merry.dreamhost.com (merry.dreamhost.com [66.33.211.26]) by menubar.gnome.org (Postfix) with ESMTP id 04C1D3B09A2 for ; Fri, 29 Oct 2004 08:16:21 -0400 (EDT) Received: from [192.168.1.45] (12-222-230-66.client.insightBB.com [12.222.230.66]) by merry.dreamhost.com (Postfix) with ESMTP id DA617175144; Fri, 29 Oct 2004 05:16:18 -0700 (PDT) From: Ross McFarland To: Jan Hudec In-Reply-To: <20041029105735.GB20881@vagabond> References: <1099046887.2117.41.camel@speedy.weide.local> <20041029105735.GB20881@vagabond> Content-Type: text/plain Message-Id: <1099052178.22922.37.camel@beta.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 29 Oct 2004 08:16:18 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Installation problem Gtk2 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 12:16:23 -0000 On Fri, 2004-10-29 at 06:57, Jan Hudec wrote: > > am I missing some packages? Do I need another base system (e.g.Fedora)? > > Can you give me a help on this one? > > I believe all you need is force install in CPAN. if you force install it things may be ok, but it looks as if there are problems in the underlying pango, C, library. if that's the case any gtk app (perl or otherwise) may have problems. -- -rm http://www.neces.com/ From scott@asofyet.org Fri Oct 29 08:44:06 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B22003B14D3 for ; Fri, 29 Oct 2004 08:44:06 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23726-09 for ; Fri, 29 Oct 2004 08:44:05 -0400 (EDT) Received: from smeagol.dreamhost.com (smeagol.dreamhost.com [66.33.209.5]) by menubar.gnome.org (Postfix) with ESMTP id 113473B1485 for ; Fri, 29 Oct 2004 08:44:05 -0400 (EDT) Received: from [192.168.0.101] (adsl-1116.mis.net [12.162.183.102]) by smeagol.dreamhost.com (Postfix) with ESMTP id 0FC9E238CD; Fri, 29 Oct 2004 05:44:04 -0700 (PDT) In-Reply-To: <1099046887.2117.41.camel@speedy.weide.local> References: <1099046887.2117.41.camel@speedy.weide.local> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <3D537DD2-29A8-11D9-83FE-000A9580E5E0@asofyet.org> Content-Transfer-Encoding: 7bit From: muppet Date: Fri, 29 Oct 2004 08:44:14 -0400 To: Wim Weide X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at gnome.org Cc: Gtk-Perl-List Subject: Re: Installation problem Gtk2 X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 12:44:06 -0000 On Oct 29, 2004, at 6:48 AM, Wim Weide wrote: > My base system is MDK 10.0 i thought mandrake included gtk2-perl in its default configuration; they use it for their setup tools. you should be able to find all the rpms you need in the cooker. i'm not sure why you installed gtk+ from source; mandrake ships with gtk+, all you needed to install was the -devel packages (to get the headers and pkg-config files). were you trying to get a newer version or something? > Compiling of the Gtk2 was Ok, but during the testphase the it stops. > (see attachment) it looks to me like your base system has chosen a theme that your custom-installed version of gtk+ cannot find, and your config files are telling the custom version to use it. then when it tries to go do actual drawing (the theme engine's responsibility), it doesn't work. can you get your custom gtk+'s gtk-demo to work? are you sure the problem is with the bindings? -- Examples really shouldn't include unexploded ordnance. -- Joe Smith, referring to an example program i wrote. From v.ladeuil@alplog.fr Fri Oct 29 09:44:46 2004 Return-Path: X-Original-To: gtk-perl-list@gnome.org Delivered-To: gtk-perl-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EC513B0A22 for ; Fri, 29 Oct 2004 09:44:46 -0400 (EDT) Received: from menubar.gnome.org ([12.107.209.248]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26842-01 for ; Fri, 29 Oct 2004 09:44:43 -0400 (EDT) Received: from smtp-out.completel.net (unknown [195.167.192.116]) by menubar.gnome.org (Postfix) with ESMTP id DB9563B07AF for ; Fri, 29 Oct 2004 09:44:40 -0400 (EDT) Received: from dune.alplog.net (unknown [195.167.225.14]) by smtp-out.completel.net (Postfix) with ESMTP id 9C51A25C136 for ; Fri, 29 Oct 2004 15:44:40 +0200 (CEST) Received: by dune.alplog.net (Postfix, from userid 1000) id EEA89D288; Fri, 29 Oct 2004 15:44:47 +0200 (CEST) Resent-To: gtk-perl-list@gnome.org Resent-From: Vincent LADEUIL Resent-Date: 29 Oct 2004 15:44:47 +0200 To: gtk-perl mailing list References: <1096248219.29860.13.camel@beta.local> <874qkh23c0.fsf@dune.alplog.net> <87r7nlzkpy.fsf@dune.alplog.net> <34295.192.146.101.26.1098803199.spork@webmail.asofyet.org> <87r7njkz2c.fsf@dune.alplog.net> <8CA3BBCC-28DE-11D9-83FE-000A9580E5E0@asofyet.org> From: Vincent LADEUIL Date: 29 Oct 2004 15:08:37 +0200 In-Reply-To: <8CA3BBCC-28DE-11D9-83FE-000A9580E5E0@asofyet.org> Message-ID: <87mzy5isdm.fsf@dune.alplog.net> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 117 Resent-Message-Id: <20041029134447.EEA89D288@dune.alplog.net> X-Virus-Scanned: by amavisd-new at gnome.org Cc: muppet Subject: Re: Gtk2::Ex::Simple::(List|Tree) X-BeenThere: gtk-perl-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using GTK+ with Perl List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 13:44:46 -0000 >>>>> "muppet" == scott writes: muppet> On Oct 28, 2004, at 4:48 AM, Vincent LADEUIL wrote: >> The missing bits, again :o) I search for that, but failed >> :-/ muppet> [snip] >> ...and the missing link ! Ok, things are clear now (did I >> say that before ? :o) muppet> [snip] >> Enlightment ! muppet> do you have suggestions for where or how this should muppet> be explained in the documentation? I keep rewriting how to answer to that. I will try to be simple for now (and for a change :) Imho, what is missing is an explanation on how inheritance and signal propagation are implemented in gtk (the C implementation), and how you implement them in Gtk2. I feel that you perfectly knows the details and often warn the reader about the limits but never give the full picture. Well, let also say that I choose Gtk2 and glade and hope to write an application without having to learn too much how gtk is implemented :) muppet> i think i am too familiar with it to understand fully muppet> how to explain it to the uninitiated -- at least, our muppet> current docs reflect that. :-/ I understand that feeling. ... and I use perl for nearly 10 years, and have use C++ a good 10 years too. But I never had to write an XS, and it looks like, to fully understand how Gtk2 works I need that (comparing with Perl/Tk, there was a lot more done in perl and Data::Dumper on a top level window revealed all the widget hierarchy...). Note that pointers to related documentations in the C implementation are perfectly valid in that case :) Or even pointers to the code ! I know it may not fully answer your question, but I will continue to work on the subject and try to come back with something more concrete. >> sub new { my ($class, $something) = @_; # we can't do >> $class->new(), because we're overriding that. >> >> Don't get that >-/ Did you mean you can't do >> $class->new($something) or just that you had added a >> parameter ? muppet> perl method lookup is done purely at runtime, *after* muppet> the compile phase, and is done purely on name, not muppet> parameters (as in C++). so in Foo::bar(), a call to muppet> Foo::bar() will resolve to the exact same function -- muppet> you'll call yourself indefinitely. Foo::SUPER::bar() muppet> will skip Foo::bar() while looking through @ISA for muppet> bar(), but i explained next why i decided not to do muppet> that. Oh ! That ! Ok, I was searching something more complicated :-/ >> # we could do $class->SUPER::new() if we knew its call >> signature. # instead, i'll go straight to >> Glib::Object::new, because i know # it will call each >> INIT_INSTANCE in the ancestry to initialize # the object >> properly. >> >> I'm sure I had already read that comment somewhere, I >> searched for it whereever I can think of, Gtk2 doc, >> tutorial, examples, can't put my finger on it ! Thanks so >> much :o) muppet> i would've sworn that was mentioned in either muppet> http://gtk2-perl.sourceforge.net/doc/pod/Glib/Object/Subclass.html muppet> or muppet> http://gtk2-perl.sourceforge.net/doc/subclassing_widgets_in_perl.html muppet> , but apparently i was wrong; it seems to be assumed muppet> or inferred. it is explained in the gtk+ muppet> documentation, but i doubt many perl programmers will muppet> read about the guts of doing OO in C. ;-) Ok. It was not exactly this comment, but it *was* in the tutorial you mentioned on sub on_show, above the call "$self->signal_chain_from_overridden". >> But it means, that it works for only one level of perl >> inheritance isn't it ? muppet> GObject only allows single inheritance; that means muppet> one parent at a time, e.g., only one GObject in @ISA; muppet> GObject uses Interfaces in place of multiple muppet> inheritance, but the perl bindings just use perl's muppet> @ISA. muppet> you can, however, derive a new perl gobject from a muppet> perl-derived gobject; the Glib test suite verifies muppet> this. everything is based on package names, and the muppet> fact that INIT_INSTANCE and friend are called from C muppet> when g_object_new() walks the ancestry. Ok. muppet> wow, that's not very clear. But everything you say help me understand better. muppet> sorry. Be forgiven, it's a hard work ! :o) Vincent