Re: Some strings corrupted when inserting into liststore model

2021-10-19 Thread Grant McLean via gtk-perl-list
On Tue, 2021-10-19 at 11:34 +1100, Daniel Kasak via gtk-perl-list wrote: > Right. I found a hack on https://perldoc.perl.org/perlunicode ( which > you directed me to ) that appears to have fixed *this* particular > issue ( though it's not clear what I've then broken as a result ) > Calling: > > En

Re: non-blocking http call and glib

2017-02-26 Thread Grant McLean
You might want to look at libsoup - the Gnome library for HTTP requests. I think the latest Perl bindings are here: https://metacpan.org/release/HTTP-Soup-Gnome Regards Grant On Sun, 2017-02-26 at 23:41 +0200, haratron wrote: > I'm trying to do a non blocking call to an http server with > Mojo

Re: loop gtk

2013-08-13 Thread Grant McLean
Hi Alejandro It can be a challenge to integrate procedural concepts like loops with an event-driven environment like Gtk. In fact, your GUI code will already be running in a loop - processing events as they occur. So what you need to do is integrate your loop with the event loop. I'm not comple

Re: Announcing: Perl bindings for LibSoup

2011-05-23 Thread Grant McLean
On Mon, 2011-05-23 at 09:56 +0200, Emmanuel Rodriguez wrote: > I do have a question: which namespace should I use for the perl bindings? > Soup is a bit too hight level, Gtk2::Soup seems a bit strange as > there's no widget involved in LibSoup (but that's what I picked for > now as I recycled Gtk2:

Re: dialog window resize

2011-03-09 Thread Grant McLean
On Wed, 2011-03-09 at 13:15 +0100, Attila bardi wrote: > hmm, the C version has the same behavior: > ... > Then how can I set the window size and remove the right from the UI > user to resize it? The window size is calculated automatically from the size of the widgets it contains. Try increasing

Re: Displaying a popup before the main window

2010-09-14 Thread Grant McLean
On Tue, 2010-09-14 at 21:59 +0100, Emmanuele Bassi wrote: > On Tue, 2010-09-14 at 19:58 +0200, Nicolas Courtel wrote: > > Hello, > > > > As my program needs a few seconds to start, I would like to display a > > popup to tell the user that it's working. > > Looks pretty simple, but for some reason

Re: embedded icons (solved)

2010-05-28 Thread Grant McLean
On Fri, 2010-05-28 at 08:48 -0500, Zane C.B. wrote: > On Fri, 28 May 2010 05:24:21 -0500 > "Zane C.B." wrote: > > > Any one know of any modules or etc that make embedding a icon in the > > Perl code easy? > > Solved this using XPM. The format is very easy to escape and embed. Yes, XPM is good

Clutter::Gst::Audio

2010-05-09 Thread Grant McLean
I've been playing around with Clutter and have mostly been successful with the simple animations etc. However I've had no luck with playing sound. I have a sound file in OGG format (I also tried WAV) and from my script I tried this: my $audio = Clutter::Gst::Audio->new; # This is line 27 $

Re: packaging help?

2010-04-18 Thread Grant McLean
On Sun, 2010-04-18 at 22:00 -0400, Jeremy Volkening wrote: > Is it safe to say that I was wrong to differentiate between packaging a > standalone app and a reusable module? >From the Debian standpoint, applications and modules/libraries are packaged in the same way. >From the CPAN perspective, it

Re: packaging help?

2010-04-18 Thread Grant McLean
On Sun, 2010-04-18 at 15:19 -0400, Jeremy Volkening wrote: > Hello, > > I'm wondering if anyone can point me toward a good source of > documentation on packaging applications (build on gtk2-perl) for > Debian-based distros? The easiest way I have found is to organise your source files in the stan

Re: Wrapping gtk2:buttons

2009-06-10 Thread Grant McLean
On Wed, 2009-06-10 at 15:07 +1000, Chris Debenham wrote: > I need to display 40 buttons in an area which may be resized and the > text in the buttons is dynamic. > As such I can't really determine ahead of time how many buttons will > fit on a row. > Is there any way to display a bunch of Gtk2::But

Re: Is there anyone out there?

2009-05-13 Thread Grant McLean
On Wed, 2009-05-13 at 14:39 +0200, Cowley Harris wrote: > Hi all, > > A few things, > > 1) Is this project still going? Doesn't seem to be much (any) emails > coming through on the mailing list. That strikes me as a rather odd observation. A quick look at the mailing list archives ( http://ma

Auto-complete text entry widget?

2009-05-07 Thread Grant McLean
Hi All Is there a Gtk widget that augments a text entry with an auto-completed list of possible alternatives - similar to Ajax widgets that all the best web apps have? I'm aware of the Gtk2::ComboBoxEntry but it isn't quite what I'm looking for (unless I'm doing it wrong it). What I want is: whe

Re: Release: 2008.233.0533Z-odin

2008-08-21 Thread Grant McLean
Hi Brian (or should I call you Spicy?) Man YOU ROCK! Back when you announced an early release of camelbox, the reason I enquired about gnomecanvas support was because that was the major missing piece to enable Sprog to run on Windows. Now you've even thrown Sprog itself into the bundle. So I bo

Re: Gtk2-perl application help files

2008-08-14 Thread Grant McLean
On Thu, 2008-08-14 at 18:28 -0700, MICHAEL MCGINN wrote: > Hi, > > I've completed a Gtk2-perl application and at point of needing to > create online documentation. This would act as both a user and > reference guide. > > I'd also like to do the help with perl & Gtk2. > > I really wanted to make

Cool tool for searching mailing lists

2008-06-24 Thread Grant McLean
Hi perl-gtk folk As we all know, there's a wealth of useful information in the archives of this mailing list. Sometimes though it can be tricky to find stuff. Here's a cool new (to me at least) site that specialises in searching mailing lists: http://perl.markmail.org/search/?q=list%3Aorg.gnom

Re: The syntax of Gnome2::Canvas::Line?

2008-06-15 Thread Grant McLean
On Sun, 2008-06-15 at 14:36 -0700, walt wrote: > Many of my remaining questions are about perl, not about gtk, so where > would you go for advice when/if you can't understand the perl docs? With regard to understanding references, there is a references tutorial in the documentation that ships wit

Re: Gtk2::Gdk::Pixbuf on win32

2008-03-06 Thread Grant McLean
On Thu, 2008-03-06 at 01:05 -0800, T.J. Ferraro wrote: > At this point I'm willing to settle for any way to display an image in > gtk2 on windows, so, any suggestions are welcome :) I've attached a standalone program that displays an image on a button. The source image was a PNG but I've encoded

Re: Complete 'Gtk2-Perl for Windows' build available

2007-11-13 Thread Grant McLean
On Tue, 2007-11-13 at 13:59 -0800, spicy jack wrote: > Hi, > > I posted here about a week ago looking for help with building > Gtk2-Perl on Windows using MinGW and dmake. I've figured it out > enough to get a basic build working. I've made it available here: ... > Consider the file that's on t

Re: Gtk2 1.152 (unstable) available

2007-07-02 Thread Grant McLean
On Jun 25, 2007, at 4:19 PM, Torsten Schoenfeld wrote: > I'd like to hear some feedback on Gtk2::Builder from people who use > Gtk2::GladeXML. I'm an infrequent user of GladeXML so I guess that means me :-) > As for connecting signals, just as in Gtk2::GladeXML, you have three > options: > > $

Re: Gtk2::MenuItem on a StatusIcon disapears on mouse-up

2007-06-10 Thread Grant McLean
On Mon, 2007-06-11 at 14:59 +1200, Grant McLean wrote: > Hi > > I think your problem is due to the fact that when you call $menu->popup > you're passing a 0 for the last parameter (the activate time). What you > need to do is pass $event->time. Perhaps it might b

Re: Gtk2::MenuItem on a StatusIcon disapears on mouse-up

2007-06-10 Thread Grant McLean
Hi I think your problem is due to the fact that when you call $menu->popup you're passing a 0 for the last parameter (the activate time). What you need to do is pass $event->time. The event object is passed to your signal handler so you may want to change your code from: $icon->signal_connect('

Re: Building on Windows with MSVC

2007-04-22 Thread Grant McLean
On Sun, 2007-04-22 at 21:10 +0300, Ari Jolma wrote: > I've succesfully compiled the gtk2 perl modules on MinGW and MSYS. I'm > now trying to build them with MSVC 7.1. I'm running into problems > because I'm now using the native windows command prompt where even > running simple Perl one liners

Re: Help with using sub to update hash

2007-03-08 Thread Grant McLean
On Thu, 2007-03-08 at 02:58 +, Mike Martin wrote: > I have the following code Ouch, that code is really hard to read. Please tell me pasting the code into google mail ate all your indentation and you didn't actually format it that way on purpose :-) > my %titles; > my %dvd_titles; Ok, so th

Re: Gnome2::PanelApplet [Re: Applets]

2007-02-02 Thread Grant McLean
On Fri, 2007-02-02 at 09:38 +, Emmanuele Bassi wrote: > On Thu, 2007-02-01 at 20:48 -0500, muppet wrote: > > On Feb 1, 2007, at 8:46 AM, Emmanuele Bassi wrote: > > > > > until Gnome2::PanelApplet works, no: there's no other option. > > > > > > *hint* fixing Gnome2::PanelApplet would be nice.

Re: Applets

2007-02-01 Thread Grant McLean
On Thu, 2007-02-01 at 14:39 +0100, Juan José 'Peco' San Martín wrote: > Hello all. > > I was looking for an easy way to deploy a Gnome applet and I find the > project PerlPanel.org but it seems that the people behind haven't got > enough time to work on it. > > Is PerlPanel currently the best ap

Re: Passing values to CodeRefs

2007-01-10 Thread Grant McLean
On Wed, 2007-01-10 at 12:00 -0600, Nik Ogura wrote: > Whats the syntax for calling a coderef with arguments here? In addition to Emmanuele's answer which relies on the implementation of the GTK-Perl wrapper, the generic Perl answer is to use an anonymous subroutine: > this works: $widget->signa

Re: SIgnal connect to a object method?

2006-12-06 Thread Grant McLean
On Wed, 2006-12-06 at 16:09 -0500, John M. Burian wrote: > This is probably more of a syntax question than a gtk-perl question, but: > > Can I have signal_connect call an object method? Say I've got a class > that contains an object method 'bar'; 'foo' is an object of this class, > and I've got

Re: filechooser default button

2006-12-04 Thread Grant McLean
On Mon, 2006-12-04 at 16:32 +0100, Jeffrey Ratcliffe wrote: > Hi all, > > How do I set a filechooser up such that when I press the return key, > the save button is automatically pressed? > > I've done a bit of googling, but found nothing relevant. I think what you're after is set_default_respons

Re: widget valid signals and properties

2006-07-27 Thread Grant McLean
On Wed, 2006-07-26 at 11:42 +0100, Dirk Koopman wrote: > On Wed, 2006-07-26 at 22:12 +1200, Grant McLean wrote: > > For each named widget (e.g.: 'first_name') and each signal (e.g.: > > 'activate'), the code checks if the object has a method called > >

Re: widget valid signals and properties

2006-07-26 Thread Grant McLean
On Tue, 2006-07-25 at 21:33 -0400, muppet wrote: > On Jul 25, 2006, at 4:59 PM, Dirk Koopman wrote: > > > 1. How do I get a list of valid properties and signals for a widget? > > Glib::Type::list_signals() and Glib::Object::list_properties(). See > the Glib::Type and Glib::Object manpages. I

Re: high level application frameworkl

2006-07-24 Thread Grant McLean
On Mon, 2006-07-24 at 18:31 +0100, Dirk Koopman wrote: > Fancy GUI widget drawing programs are not required. > > Is there such a thing out there for Gtk-Perl or do I have to go and > write (another) one? > > For the absence of any doubt at all: glade is exactly *not* what I want > or require. To

Re: More on formatting a TreeViewColumn's header ...

2006-07-05 Thread Grant McLean
On Thu, 2006-07-06 at 14:12 +1000, Daniel Kasak wrote: > Hi all. > > Thanks to muppet's hint, I've worked out how to replace whatever it is > that renders column headers with a Gtk2::Label. I can do pango markup on > it the label, which is great, but setting the alignment doesn't seem to > work.

Re: Inspecting a Gtk2::GladeXML object

2006-06-23 Thread Grant McLean
On Fri, 2006-06-23 at 15:09 +1000, Daniel Kasak wrote: > Hi all. > > Is there a way to list all widgets in a Glade XML file? > It would be nice if I could iterate over them without knowing what they > are in advance ... I can't see anything in the Gtk2::GladeXML API, but it is XML, so you can par

Re: Space Bar Issue

2006-05-18 Thread Grant McLean
On Thu, 2006-05-18 at 22:00 +0200, Patrick Jacquot wrote: > Le jeudi 18 mai 2006 à 11:50 -0700, developer a écrit : > > Hi List, > > > > On the app I am making, when I press the space bar, > > it is treated as a left mouse click on any one of > > the gtk2 buttons on the screen at the time, and > >

Re: CVS hostname changed

2006-05-13 Thread Grant McLean
On Sat, 2006-05-13 at 17:53 +0200, Torsten Schoenfeld wrote: > To update an existing checkout, you should be able to use this command > > find . -name Root -exec perl -pi -we '[EMAIL PROTECTED]:/cvsroot/[EMAIL > PROTECTED]:/cvsroot/gtk2-perl#;' {} \; Worked perfectly - thanks. I hadn't update

Re: Perl GKT gksu

2006-03-21 Thread Grant McLean
On Tue, 2006-03-21 at 21:44 -0400, José Luis Regalado wrote: > greetings. > Sorry for my English. > > I need write a program for administration. I need work with *gksu* > > I not know about how work perl scripts and gtk with gksu. Please i need > how to. If you had a compiled C program like 'x

Re: Programming style: using Classes or inline

2006-03-16 Thread Grant McLean
On Wed, 2006-03-15 at 21:13 -0600, David wrote: > I first tried to keep my perl source separated into 3 files, all inline > code without making any packages, including the other two into the main > program by "use" statements, but when I added "use strict", I found that > I had to tie the variables

Re: glade is preferred?

2006-03-15 Thread Grant McLean
On Mon, 2006-03-13 at 17:55 +0700, Beast wrote: > Is creating UI with glade is now the preferred way to make GUI > application using perl-gtk (or any other gtk binding language)? what is > the pros and cons? It certainly is convenient. It means you don't have to write code to create your GUI.

Re: GTK2, XML, perl

2006-03-12 Thread Grant McLean
On Sun, 2006-03-12 at 22:04 -0400, José Luis Regalado wrote: > Glade generate a file called by example: foo.glade. It is possible to > happen of foo.glade to foo.pl?, it is to say, XML to perl code? That would mean that you could not go back to Glade and revise your user interface. If you did,

Re: Gnome canvas problem on Ubuntu

2005-12-04 Thread Grant McLean
On Sat, 2005-12-03 at 20:39 -0600, Yaakov S (Cygwin Ports) wrote: > But why wouldn't it be sufficient just to push a new version (which > you'll have to do either way) without the custom boxed wrapper and > require libgnomecanvas-2 >= 2.12.0? As Aristotle pointed out, this would mean it wouldn't

Re: Gnome canvas problem on Ubuntu

2005-12-03 Thread Grant McLean
On Fri, 2005-12-02 at 21:49 -0500, muppet wrote: > On Dec 2, 2005, at 3:57 PM, Grant McLean wrote: > > > I don't seem to be able to use bezier path objects with the packaged > > version of Gnome2::Canvas in Ubuntu 5.10 ('Breezy'). For example, > > thi

Gnome canvas problem on Ubuntu

2005-12-02 Thread Grant McLean
Hi All I don't seem to be able to use bezier path objects with the packaged version of Gnome2::Canvas in Ubuntu 5.10 ('Breezy'). For example, this test script should display a blue semi-circle: #!/usr/bin/perl use strict; use warnings; use Gtk2 '-init'; use Gnome2::Canvas; my $wid

Re: Missing Gtk2::HButtonBox and others

2005-11-14 Thread Grant McLean
On Mon, 2005-11-14 at 10:20 -0800, Lynn Wilkins wrote: > Ok! > perl -e "use Gtk2; \$hbox=Gtk2::HButtonBox->new;" ## it works. my kit > must be complete! > So does this mean there is a bug in Glade2perl? Generating Perl from a Glade XML file isn't really the best way to use Glade. The preferre

TreeView drag and drop

2005-10-24 Thread Grant McLean
Hi All I'm implementing a menu editor around a TreeView which presents the user with a structure something like this: Item One +Menu One Item Two Item Three +Menu Two Item Four Item Five Item Six I have enabled reordering of items via drag-n-drop with this line: $view->s

Gtk2::GladeXML Article

2005-09-15 Thread Grant McLean
I've just posted a PDF of my article on using Glade and Perl: http://live.gnome.org/GTK2-Perl/GladeXML/Tutorial This article was originally printed in The Perl Review earlier this year. http://www.theperlreview.com/ Cheers Grant ___ gtk-perl-lis

Re: Password entry

2005-08-09 Thread Grant McLean
On Tue, 2005-08-09 at 11:26 +0200, Juan José 'Peco' San Martín wrote: > On Tue, 2005-08-09 at 15:15 +0700, Beast wrote: > > How do I create password entry? (ie. same like Gtk2::Entry but every > > chars displayed as "*") > > For example using Glade: > > $text=$gladexml->get_widget('entry1');

Re: rounded rectangles

2005-08-08 Thread Grant McLean
On Mon, 2005-08-08 at 09:45 -0400, James Muir wrote: > Hello, > > I've been reviewing the man pages, FAQ, and various demos but have been > unable to find a way to make a rectangle with rounded corners. How would > I go about making one? I've done that in Sprog using a canvas shape object with

Re: table layout

2005-07-21 Thread Grant McLean
On Fri, 2005-07-22 at 09:51 +0700, Beast wrote: > Vincent LADEUIL wrote: > > > > All in all, in the last year I solve nearly all my layout > > problems with glade-only solutions (the glade files amount for > > around 10.000 lines in my current project). > > Seriously, is there any ser

Re: a couple of Gnome2::Canvas problems

2005-07-12 Thread Grant McLean
I tried your script and got the same errors. It piqued my interest because the error seem to occur even when all calls to update meter are removed. If I put a die in the update_meter routine, it was never reached and yet commenting out the $needle->set and $text->set made the errors go away. Ver

Re: Mixed pixbuf and text

2005-07-01 Thread Grant McLean
On Fri, 2005-07-01 at 10:49 +0200, A. Pagaltzis wrote: > * The Saltydog <[EMAIL PROTECTED]> [2005-07-01 10:35]: > > On 7/1/05, Jan Hudec <[EMAIL PROTECTED]> wrote: > > > Wow, that's complex! Simply running Gtk2->main_iteration > > > while Gtk2->events_pending; between reading the lines is > > > eas

Re: Working with an image from an http request

2005-06-23 Thread Grant McLean
On Fri, 2005-06-24 at 11:18 +1000, Daniel Kasak wrote: > I'm using jpgraph on our webserver to create graphs. > I'm using LWP::Simple to fetch the graph, which is in PNG format. > ... > I basically just want to display the image on-screen. Can I do anything > useful with this in-memory, or do I hav

Announce: Sprog 0.10

2005-06-14 Thread Grant McLean
Hi All This release has some bug fixes, some new gears and one crazy new feature: You can now use the --nogui option to run Sprog without a GUI. So those snazzy machines you've been building to automate repetitive tasks can now be scheduled via cron, or kicked off daily from your login script. Als

Re: non-blocking loop delay

2005-06-12 Thread Grant McLean
On Sun, 2005-06-12 at 18:13 -0400, zentara wrote: > Hi, > I'm either missing something, or I'm searching for something which dosn't > exist. Is there a way to slow down a loop, without blocking the gui? > I know the code below, could (and probably should) be rewritten using > Glib::Timeout->add ()

Announce: Sprog-0.09

2005-05-30 Thread Grant McLean
Hi All Well it's been a while since the last release of Sprog, but once you try it, I hope you'll agree it was worth the wait: * A help viewer is now bundled, help text has been added for all gears and developer notes have been added too. * A bunch of new gears are included in the distribu

Re: Gtk2::Table

2005-05-16 Thread Grant McLean
On Mon, 2005-05-16 at 13:06 +0200, Louis-Xavier Storme wrote: > can anyone tell me how to retrieve a widget at a fixed position (col, > row) from a Gtk2::Table widget ? I don't think the table widget has a method to do that, but the information is available: foreach my $child ($table->get_child

Documentation Bookmarklet

2005-05-15 Thread Grant McLean
Hi All Here's a link to a bookmarklet that's handy for finding the C API page corresponding to a Perl Gtk2::* class: http://wellington.pm.org/archive/200412/gtkbm.html Cheers Grant ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.g

Win32 Hero Needed

2005-05-12 Thread Grant McLean
I have a keen desire to get Sprog ( http://sprog.sourceforge.net/ ) running on Windows. The arrival of PPM binaries for Gtk2::* gets me most of the way there, but one significant final hurdle is that there's no PPM for Gnome2::Canvas which is kind of central to the app. At least in theory, libgno

Re: offtopic: libxml

2005-05-05 Thread Grant McLean
This really is offtopic for the gtk-perl list. If you want to reply, reply direct to me or take it to the perl-xml list. My responses below ... On Thu, 2005-05-05 at 15:50 +0200, igzebedze wrote: > > * BoÅ¡tjan Å petiÄ? <[EMAIL PROTECTED]> [2005-05-01 11:20]: > > > i am thinking of a wrapper for

Re: How about a 'recipes' page in the wiki ?

2005-04-27 Thread Grant McLean
On Wed, 2005-04-27 at 17:44 -0700, ofey aikon wrote: > > > > actually i wouldn't necessarily expect the recipes/cookbook style stuff to > > be > > runnable scripts anyway. they should be stripped down to only the relevant > > portion of code with lots of discussion and comments. if someone out th

Re: code organization style

2005-04-22 Thread Grant McLean
On Fri, 2005-04-22 at 20:42 +0300, Gabor Szabo wrote: > As I have just started to learn Gtk and never wrote anything more than one > simple window in Tk either I would like to get your opinion on how to > organize code ? > > So far I have an application with several windows all in one file of > ov

Re: [Fwd: Re: Gtk2::MenuItem get_label?]

2005-04-18 Thread Grant McLean
On Mon, 2005-04-18 at 20:17 +0200, Martin Junius wrote: > Grant McLean wrote: > > > I notice the OptionMenu widget is on the 'Deprecated' tab in Glade. Is > > there a reason you need to use this widget in particular? > > Just ;-) noticed this too. I&#

Re: [Fwd: Re: Gtk2::MenuItem get_label?]

2005-04-17 Thread Grant McLean
On Sun, 2005-04-17 at 20:30 +0200, Martin Junius wrote: > Back to some Gtk2-Perl hacking after a longer break ... > There is still one problem, where I didn't get an answer yet, see below. > I'd really appreciate a way to get to all the labels. Thanks. > > Martin ... > So it seems I can only re

Re: GladeXML doc patch

2005-04-14 Thread Grant McLean
On Thu, 2005-04-14 at 08:03 -0400, muppet wrote: > On Apr 14, 2005, at 5:30 AM, Grant McLean wrote: > > > I notice the signal_autoconnect_from_package helper method in > > GladeXML.pm is not fully documented. Specifically, the fact it accepts > > a package or and object.

GladeXML doc patch

2005-04-14 Thread Grant McLean
Hi I notice the signal_autoconnect_from_package helper method in GladeXML.pm is not fully documented. Specifically, the fact it accepts a package or and object. I find the latter to be particularly useful and in fact advocate it as 'the one true way' :-) So here's a doc patch... Cheers Grant I

Re: Segmentation fault in gtk2-perl-application

2005-04-05 Thread Grant McLean
On Tue, 2005-04-05 at 20:40 +0200, Stephan Brunner wrote: > Am Samstag 02 April 2005 17:01 schrieb Stephan Brunner: > > Yepp, this obiously isn't a gtk2-perl issue, but a gtk+ issue -- the C > > program also crashes (thank you for the gcc-commandline, it would have > > taken me hours to figure that

Re: Gtk2::Helper or Glib::IO event watcher problem

2005-03-22 Thread Grant McLean
On Tue, 2005-03-22 at 13:45 +0300, Vyacheslav Dikonov wrote: > I need to write a perl script that would act as a frontend to another perl > script and show its console output in a non-locking "realtime" manner. The ... > The problem is that the event callback seems to be triggered only once > w

Glade for Win32?

2005-03-18 Thread Grant McLean
Does anyone know of a downloadable binary of Glade for MS Windows? Or if it even can be built on Windows? Grant ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Unix time == 1111111111

2005-03-17 Thread Grant McLean
On Thu, 2005-03-17 at 20:59 -0500, muppet wrote: > On Mar 17, 2005, at 4:52 PM, Grant McLean wrote: > > my $font = Gtk2::Pango::FontDescription->from_string("Sans Bold 48"); > > incidentally, i found "Sans Bold 200" to be much more entertaining. :-) Sadly,

Unix time == 1111111111

2005-03-17 Thread Grant McLean
Just so you don't miss it (only a few hours to go): #!/usr/bin/perl use strict; use Gtk2 -init; use Glib qw(TRUE FALSE); my $window = Gtk2::Window->new; $window->signal_connect(delete_event => sub { Gtk2->main_quit; }); my $label = Gtk2::Label->new('' . time()); my $font = Gtk2::Pango::FontDes

Re: UI for scheduling events (appointments)

2005-03-17 Thread Grant McLean
On Thu, 2005-03-17 at 01:33 -0500, ofey aikon wrote: > Since there is quite a bit of UI design involved, I am considering > using glade and Gtk2::GladeXML. But I am wondering what is a clean > approach to package the xml file in the module. A number of the class modules in my Sprog package use Gla

Re: non-resizable window wants to resize to be a square

2005-03-16 Thread Grant McLean
On Wed, 2005-03-16 at 19:35 -0500, Jeff 'japhy' Pinyan wrote: > Can other people verify this oddity for me? ... > For some reason, the window allows itself to be resized vertically so it > can be 200x200. Can other people verify that this happens? I'm on > Windows, but non-Windows verificatio

propagate_key_event

2005-03-08 Thread Grant McLean
Can the propagate_key_event method in Gtk2::Window be used to feed a key-press to a window? I have a FileChooser dialog which will close if I press the Escape key but not if I try and generate it synthetically: my $event = Gtk2::Gdk::Event::Key->new('key-press'); $event->keyval($Gtk2::Gdk::Ke

Re: Gtk2::MenuItem get_label?

2005-02-21 Thread Grant McLean
On Mon, 2005-02-21 at 22:33 +0100, Martin Junius wrote: > how do I retrieve the label from a Gtk2::MenuItem? The Gtk2::MenuItem is derived from the Gtk::Bin class, so you can use the ->child method to get the label object out. Then you can use the ->get_label method to get the text of the label.

Re: external application output to a buffer

2005-02-19 Thread Grant McLean
Sorry, my original reply didn't go to the list. On Sat, 2005-02-19 at 18:50 +0100, Stefano Esposito wrote: > i'm trying to redirect the output of an external application > called with ` ` to a buffer. I need that the output is sent > to the buffer in real time, like a console and not when > ext

Announce: Sprog 0.05

2005-02-09 Thread Grant McLean
Hi All You may remember back in December I announced my 'pstax' project and mentioned that I was looking for a new project name. Well, the new name is Sprog ... Sprog is a GUI tool that aims to bring the power of command pipelines to the graphical desktop. The Sprog workspace allows a user to a

Re: Gtk2::Ex::MarkupTextBuffer

2005-02-05 Thread Grant McLean
On Sat, 2005-02-05 at 19:49 +0100, A. Pagaltzis wrote: > * Kevin C. Krinke <[EMAIL PROTECTED]> [2005-02-04 22:40]: > > Does anyone have any suggestions as to other CPAN XML modules > > that preserve prefixing and suffixing whitespace of tagged > > contents? > > I'd suggest trying XML::LibXML befor

Re: pixmap plotting

2005-01-26 Thread Grant McLean
On Wed, 2005-01-26 at 22:06 -0500, muppet wrote: > On Jan 26, 2005, at 5:44 PM, BoÅtjan ÅpetiÄ wrote: > > > i'm tracking an output of an external program and plotting a graph > > based on it. > > > > i've got my pixmap plotting quite nicelly now... but: > > a) how do i resize it properly, if the