Re: Gtk2::Builder and locales

2012-04-17 Thread Chris Debenham
On 14 April 2012 06:24, Brian Manning wrote: > On Thu, Apr 12, 2012 at 6:04 PM, Chris Debenham > wrote: > > Does anyone have any ideas on this? > > It is rather annoying that locale stuff doesn't work with Gtk2::Builder > :( > > Can you break the problem down i

Re: Gtk2::Builder and locales

2012-04-12 Thread Chris Debenham
Does anyone have any ideas on this? It is rather annoying that locale stuff doesn't work with Gtk2::Builder :( On 28 March 2012 12:13, Chris Debenham wrote: > I recently migrated my app (www.lyricue.org) from Glade to GtkBuilder but > in the process found that translation of the ui f

Gtk2::Builder and locales

2012-03-27 Thread Chris Debenham
I recently migrated my app (www.lyricue.org) from Glade to GtkBuilder but in the process found that translation of the ui files is not being done. Anything I translate directly in code (via 'gettext()' ) works as does any of the built-in strings (such as "Exit") It is like the Gtk2::Builder object

Re: packaging help?

2010-04-19 Thread Chris Debenham
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think there is a little confusion on what the original poster was asking - answers are coming to two separate questions. When it comes to packaging perl things there are two separate areas. There is the packaging of perl modules (like Gtk2::Ex::Cloc

Re: packaging help?

2010-04-18 Thread Chris Debenham
I currently package/distribute an application depending on gtk2-perl Have a look at how I did my packaging at http://lds.cvs.sourceforge.net/viewvc/lds/lyricue/debian/ It isn't too hard - basically you setup a Makefile that does nothing for 'make' but just copies the files into the right places whe

Re: Perl bindings and the newest gtk+

2009-11-19 Thread Chris Debenham
Up6 pmgAnjxXKM3vVDAUhpCB5o0lUnWBrgqu =qD5E -END PGP SIGNATURE- > > --- On Thu, 11/19/09, Chris Debenham wrote: > >> From: Chris Debenham >> Subject: Re: Perl bindings and the newest gtk+ >> To: "Sergei Steshenko" >> Cc: gtk-perl-list@gnome.org >> Dat

Re: Perl bindings and the newest gtk+

2009-11-19 Thread Chris Debenham
They are working fine for me with gtk 2.18.3 2009/11/20 Sergei Steshenko : > Hello, > > are Perl bindings supposed to work with the newest gtk+, e.g. gtk+-2.18.* ? > > I haven't tried yet, just want to know about gtk+ changes which could break > the bindings, etc. > > Thanks, >  Sergei. > > > > __

Re: FileChooser - hiding shortcut/places area

2009-06-15 Thread Chris Debenham
Are there any suggestions as to how I could do something like this? 2009/6/12 Emmanuele Bassi : > On Fri, 2009-06-12 at 11:26 +1000, Chris Debenham wrote: >> Now that I have buttons wrapping nicely I have a new problem. >> I want to display a Gtk2::FileChooser widget in an ar

Re: Wrapping gtk2:buttons

2009-06-11 Thread Chris Debenham
2009/6/12 Kevin Ryde : > Chris Debenham writes: >> >> 'fill' the space horizontally rather then taking the bare minimum of >> space. > > I suppose that's the sort of expand/fill option the containers have. > Doesn't look like textview does tha

FileChooser - hiding shortcut/places area

2009-06-11 Thread Chris Debenham
Now that I have buttons wrapping nicely I have a new problem. I want to display a Gtk2::FileChooser widget in an area that may not be very wide. As such I want to hide the shortcuts/places area that is normally shown on the left I can't find any property to set in order to hide this item. Does anyo

Re: Wrapping gtk2:buttons

2009-06-11 Thread Chris Debenham
I just tried the TextView method and it worked! To only thing I'd like to change is to be able to set the widgets to 'fill' the space horizontally rather then taking the bare minimum of space. 2009/6/12 Kevin Ryde : > Chris Debenham writes: >> >> Perhaps if I put

Re: Wrapping gtk2:buttons

2009-06-10 Thread Chris Debenham
2009/6/11 Kevin Ryde : > Chris Debenham writes: >> >> 2009/6/10 Grant McLean : >>> >>> * the Gtk::TextView ... >> >> Ugly - but may work > > You might check if it will flow them automatically, I suspect they might > end up in one wide

Re: Wrapping gtk2:buttons

2009-06-10 Thread Chris Debenham
2009/6/10 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 >&g

Wrapping gtk2:buttons

2009-06-09 Thread Chris Debenham
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::Button widgets and have it wrap around to fit the available space? --

Re: Who can tell me how to quit the maillist group

2008-07-13 Thread Chris Debenham - RSD Engineer
Ahhh, at the bottom of every email there is a link to http://mail.gnome.org/mailman/listinfo/gtk-perl-list Go to that page and it tells you how to unsubscribe Tony wrote: Hi all, Who can tell me how to quit the maillist group? Thanks in advance! ---

Re: Another case of gettext with Gtk2::GladeXML

2006-08-18 Thread Chris Debenham
Ahh, I see your problem. When you load the glade you use $xml_root = Gtk2::GladeXML->new( $glade_dir."/joellisme.glade" ); To get gettext to handle the glade you need to add the DOMAIN option. Change the line to $xml_root = Gtk2::GladeXML->new( $glade_dir."/joellisme.glade", 'gui', 'joellism

Re: Another case of gettext with Gtk2::GladeXML

2006-08-17 Thread Chris Debenham - PTS Engineer
e been it... > but nope, i tried: > $xml_root = Gtk2::GladeXML->new( $glade_dir."/joellisme.glade", > undef, 'joellisme' ); > > still the same results :-( > glade file is ignored... > > -Pascal > > On 8/17/06, Chris Debenham <[EMAIL PROTECT

Re: Missing Gtk2::HButtonBox and others

2005-11-13 Thread Chris Debenham - RSD Engineer
Try this instead perl -e "use Gtk2; \$hbox=Gtk2::HButtonBox->new;" Gtk2::HButtonBox is not a module in itself, it is a part of the Gtk2 module Chris Lynn Wilkins wrote: I've installed the latest Gtk2. and checked it. cpan> install Gtk2 CPAN: Storable loaded ok Going to read /root/.cpan

Re: Apply gettext to Gtk2::GladeXML

2005-11-13 Thread Chris Debenham - RSD Engineer
I'm doing this in one of my applications (lyricue, see www.adebenham.com/lyricue) The relevant bit is: --- begin code --- eval { require Locale::gettext }; if ($@) { print "Gettext not available, english text only\n"; sub gettext { return $@; } } else { import Locale::g

Re: table layout

2005-07-24 Thread Chris Debenham - PTS Engineer
Joe Smith wrote: Daniel Kasak wrote: ... snipped ... Lyricue looks sweet, but it would probably take me several hours of work, and some serious Perl/system knowledge to get all the dependencies installed and get the app working. If I want to install it on another system, I start over ag

Re: table layout

2005-07-21 Thread Chris Debenham
Yep, I have two gtk2-perl apps. Lyricue : www.adebenham.com/lyricue Gournal: www.adebenham.com/gournal Lyricue is mature (about 2-3 years) and is used weekly in production in many churches Chris On Fri, 2005-07-22 at 09:51 +0700, Beast wrote: > Vincent LADEUIL wrote: > > > > All in all, in t

Re: Something to triger

2005-07-11 Thread Chris Debenham - PTS Engineer
Two ways to do this (that I can think of) Add a timeout to populate the list. ie. $timer = Glib::Timeout->add($interval, \&populate_list) or put while (Gtk2->events_pending) { Gtk2->main_iteration; } Just before the &populate_list() to finish displaying the window before populating. Chris

Re: Background image for a window

2005-02-16 Thread Chris Debenham - PTS Engineer
20:43, muppet wrote: > > On Feb 10, 2005, at 8:06 PM, Chris Debenham - PTS Engineer wrote: > > > Is there any other way? > > > > Maybe. Need more info. What are you trying to make? (Especially > > intriguing since you say GnomeCanvas is too slow for this purpose...

Re: Background image for a window

2005-02-10 Thread Chris Debenham - PTS Engineer
gally binding way: > Date: Wed, 09 Feb 2005 08:24:12 -0500 > From: muppet <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Cc: gtk-perl-list@gnome.org > Subject: Re: Background image for a window > > > On Feb 9, 2005, at 12:20 AM, Chris Debenham - PTS Engineer wrote:

Background image for a window

2005-02-08 Thread Chris Debenham - PTS Engineer
I want to put an image in the background of a window with text labels over it. In Gtk1 i used: $window_style->bg_pixmap('normal', $pixmap); $window->window->set_back_pixmap($pixmap, 0); but this fails in GTK2 (error message:"Usage: Gtk2::Style::bg_pixmap(style, state)") Is there a better/proper

Re: Startup time poll

2005-01-30 Thread Chris Debenham - PTS Engineer
Here are my results hackbox:~$ ./gtk2-perl-startup-timer.pl time to load Glib 1.061: 0.039s time to load Gtk2 1.061: 0.250s time for Gtk2->init: 0.017s total startup time: 0.306s Glib built for 2.4.1, running with 2.4.8 Gtk2 built for 2.4.9, running with 2.4.14 hackbox:~$ ./gtk2-p