RE: EXTERNAL: stdout/sterr to GtkTextView at runtime

2015-12-21 Thread Williams, James P2
$fh); $|=TRUE; select($fhPrev); or with an older idiom for maximum compactness/obfuscation, select((select($fh),$|=TRUE)[0]); or with an I/O layer. binmode($fh,”:unix”) or die “Unable to binmode: $!.\n”; Good luck. Jim From: Williams, James P2 (US) Sent: Friday, December 11, 2015 11

RE: EXTERNAL: stdout/sterr to GtkTextView at runtime

2015-12-11 Thread Williams, James P2
One way to deal with this is to open a pipe to the program instead of using backticks. use Glib qw(TRUE FALSE); use IO::File; ... my($cmd)=”/usr/bin/perl test_output.pl”; my($fh)=new IO::File(“$cmd 2>&1 |”); die “$0: Unable to open pipe from $cmd: $!.\n” if !$fh; Then, add a

RE: EXTERNAL: Re: Multiple Renderers In A Tree View Column

2015-07-01 Thread Williams, James P2
the reply, and for everyone who supports this great package. Jim From: Daniel Kasak [mailto:d.j.kasak...@gmail.com] Sent: Monday, June 29, 2015 6:35 PM To: Williams, James P2; gtk-perl mailing list Subject: EXTERNAL: Re: Multiple Renderers In A Tree View Column I'm @ work now ( new job to

RE: Variant tests failing on big endian machines

2015-06-26 Thread Williams, James P2
> - Original Message - > > From: "Torsten Schoenfeld" > > To: gtk-perl-list@gnome.org > > Sent: Friday, 26 June, 2015 3:34:48 PM > > Subject: Re: Variant tests failing on big endian machines > > > > > > I found the culprit. On the GVariant.xs file, we have: > > > > > > const char * g_varia

Multiple Renderers In A Tree View Column

2015-06-24 Thread Williams, James P2
I'm trying to create a tree view that lets the user edit items in one of the columns. Items are either simple strings or picked from a list of strings. To do this, I packed a text renderer and a combo box renderer into that column. In the model, I added two Glib::Boolean columns, one to contr

RE: EXTERNAL: Re: Gtk2::SpinButton For Hex

2015-05-22 Thread Williams, James P2
> Looks like twisting the implementation of the standard Spinbutton widget is > not quite easy to be achieved - maybe my alternative is quicker to put to > effective use. Yeah, I've toyed with doing something along these lines, using other widgets to create a poor man's spin button. My hex in

RE: EXTERNAL: Re: Gtk2::SpinButton For Hex

2015-05-21 Thread Williams, James P2
> > >> How can I use a Gtk2::SpinButton to prompt for an integer expressed in > > >> hex? I've tried the following, but it fails. > > >> > > >> ... > > >> > > >> The text appears to be correct while I hold either arrow button down; I > > >> see hex values incrementing. However, single clicks

RE: EXTERNAL: Re: Gtk2::SpinButton For Hex

2015-05-20 Thread Williams, James P2
ped into the entry. Otherwise, those key events are ignored. Thanks for any other ideas you may have. Jim -Original Message- From: Robert Wilkinson [mailto:b...@fourtheye.org] Sent: Wednesday, May 20, 2015 3:12 AM To: Williams, James P2 Cc: 'gtk-perl-list@gnome.org' Subject:

Gtk2::SpinButton For Hex

2015-05-19 Thread Williams, James P2
How can I use a Gtk2::SpinButton to prompt for an integer expressed in hex? I've tried the following, but it fails. use strict; use warnings; use Glib qw(TRUE FALSE); use Gtk2 qw(-init); my($spin)=Gtk2::SpinButton->new_with_range(0,1000,1); $spin->set_numeric(FALSE); $spin

RE: Re: Can't locate object method "add_actions"...

2012-06-08 Thread Williams, James P2 (N-UNITED SPACE ALLIANCE, LLC)
I've done lots of XS, and can help if you need it. Here are the resources I used to learn it, the first two being the most helpful. They're listed in order, from gentlest to most blood-curdling. Nah, it's not so bad. http://world.std.com/~swmcd/steven/perl/pm/xs/intro/index.html http://

Unable To Control Focus In A Gtk2::Notebook

2012-05-18 Thread Williams, James P2 (N-UNITED SPACE ALLIANCE, LLC)
I wrote a small example of my problem below. It's just a simple window with a Gtk2::Notebook that contains a few pages, each with its own Gtk2::Entry. When I change pages by clicking the tabs, the focus moves to the label on the new tab, but only if it was originally on the label of the previo

RE: Unable To Keep Showing Last Item In Gtk2::TreeView

2012-04-12 Thread Williams, James P2 (N-UNITED SPACE ALLIANCE, LLC)
> Williams, James P2 wrote: > > How can I keep my automatic scrolling, even after these kinds of events? > > I’ve tried reacting to various signals, but the tree view seems too stale > > for $tree->get_visible_range() or $tree->scroll_to_cell() to work. > You might r

Unable To Keep Showing Last Item In Gtk2::TreeView

2012-04-09 Thread Williams, James P2 (N-UNITED SPACE ALLIANCE, LLC)
The code below illustrates a problem I'm having with Gtk2::TreeView (or here). It just displays a list of random words, and adds a new one at the bottom once every second. I'd like