Gtk2::Recent 0.010 (unstable)

2005-01-24 Thread Emmanuele Bassi
Hi all. I've wrapped up the recent-files stuff in libegg, in order to use it with Perl. the binding it's still in its infancy, but it's coming along pretty well. Right now, you can add and remove stuff from the recent model. I'm planning to complete the EggRecentModel bindings by tonight (localti

Re: Startup time poll

2005-01-30 Thread Emmanuele Bassi
On Wed, 26 Jan 2005 00:05:24 -0500, muppet <[EMAIL PROTECTED]> wrote: First system (notebook, Sempron 3000+, 512 MB RAM, local display, Ubuntu Hoary): * First run: [EMAIL PROTECTED]:/tmp $ ./gtk2-perl-startup-timer.pl time to load Glib 1.072: 0,136s time to load Gtk2 1.072: 0,392s time for Gtk2-

Gtk2::Recent 0.031 (unstable)

2005-01-31 Thread Emmanuele Bassi
Hi all. Here's another version of the Gtk2::Recent module, now with the complete bindings for: * EggRecentItem (the item inside the recent files list) * EggRecentModel (the object watching the list) * EggRecentView (the interface for model viewers) EggRecentView is a GInterface for creating mode

Gnome2::GConf 1.012 (unstable)

2005-02-04 Thread Emmanuele Bassi
] * Require Glib 1.070. [Emmanuele] * Require GConf >= 2.0.0. [Emmanuele] +++ Ciao, Emmanuele. -- Emmanuele Bassi (Zefram) [ http://www.emmanuelebassi.net ] GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738 08BD 8ECC DB8F A432 0FF4

Gtk2::StatusIcon 0.010 (unstable)

2005-02-04 Thread Emmanuele Bassi
Hi all. In my recent effort to wrap some of the stuff in libegg, here's another binding for a module of that library. Gtk2::StatusIcon binds the EggStatusIcon object, which is a more complex and powerful widget to be placed inside the notification area than the Gtk2::TrayIcon object. The binding

Gnome2::GConf 1.013 (unstable)

2005-02-12 Thread Emmanuele Bassi
Hi all. New week, new release of the development cycle of Gnome2::GConf - the "Breaking up is hard to do" release. The most important feature of this release is the shiny new error handling mechanism for Gnome2::GConf::Client. As a bit of background: in C, each GConfClient function that might fa

Re: Glade Perl codegen

2005-03-24 Thread Emmanuele Bassi
namely: a man page, some documentation and an icon), though, but it's basically finished: http://www.emmanuelebassi.net/linux/perl/gnome-hello-perl-0.3.tar.gz Regards, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> ___ gtk-perl-list m

Re: Glade Perl codegen

2005-03-25 Thread Emmanuele Bassi
> --prefix=/tmp/usr \ > --disable-schemas-install At this point, I have a working sandbox where testing the correct installation of files, the correct loading of modules/icons/data, etc. Regards, Emmanuele. -- Emmanuele Bassi (Zefram) [ htt

Re: passing arguments to the

2005-04-13 Thread Emmanuele Bassi
Hi, On Tue, 2005-04-12 at 18:20 -0400, Sean Dague wrote: > Though what is a bit disconcerting is that Chapter1 of that tutorial > (http://gtk2-perl.sourceforge.net/doc/gtk2-perl-tut/ch-TutorialDownload.html) > has the following: > > "A packaged verion of this tutorial is available from > ftp://f

GTK2-Perl Lives!

2005-04-15 Thread Emmanuele Bassi
wiki page. :-) I for one welcome our new Wiki overlord! Kind regards, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Blog: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/l

Re: GTK2-Perl Lives!

2005-04-15 Thread Emmanuele Bassi
On Fri, 2005-04-15 at 10:34 -0400, Lee Aylward wrote: > On Fri, 2005-04-15 at 08:17 -0400, Ross McFarland wrote: > > > > we really need to migrate the FAQ to a wiki, anyone? > > > > I can do this over the weekend. I've started a page at: > > http://live.gnome.org/GTK2-PerlFAQ Please, don't st

Re: GTK2-Perl Lives!

2005-04-16 Thread Emmanuele Bassi
On Fri, 2005-04-15 at 13:35 -0400, Ross McFarland wrote: > Emmanuele Bassi said: > > I've already put up a subpage here: > > > > http://live.gnome.org/GTK2_2dPerl_2fFrequentlyAskedQuestions > > should i go ahead and point the faq link (on the main site) there?

Re: Downloading the latest version of the Tutorial

2005-04-16 Thread Emmanuele Bassi
d with the source code > but I could not find > it in the Perl source code. Am I right that it is only available in > the C source code? If you check out the GTK2-Perl tutorial from CVS, you'll get all the examples source code. Regards, Emmanuele. -- Emmanuel

Re: Downloading the latest version of the Tutorial

2005-04-16 Thread Emmanuele Bassi
On Sat, 2005-04-16 at 11:38 +0300, Gabor Szabo wrote: > On 4/16/05, Emmanuele Bassi <[EMAIL PROTECTED]> wrote: > > > > The Perl tutorial is in CVS, under the module gtk2-perl-tutorial. I > > think we'll need to package it, even if it's still incomplete. >

ANN: Gtk2::Recent hits the CVS

2005-04-16 Thread Emmanuele Bassi
tely. It's still missing a display widget, but since the eggrecentviewgtk object really sucks (${DEITY}, I instantly regret having had lunch, when I look at it) I'll soon put up my all-Perl implementation of a recent files menu. Happy hacking, Emmanuele. -- Emmanuele Bass

Re: setting color of some of the rows in a TreeView

2005-04-22 Thread Emmanuele Bassi
nd out. This has become a FAQ. You might want to check out this new entry: http://live.gnome.org/GTK2_2dPerl_2fFrequentlyAskedQuestions#head-27b058f6e5000f8b3f41618781010a9a7a266eed And the mailing list archives for more code. Ciao, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTEC

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

2005-04-27 Thread Emmanuele Bassi
rial or as a simple (g)zip-ed file > without any real installation. The "Tutorial" could be easly mistaken for the gtk2-perl tutorial in perldoc format (uhm, could be an interesting pet project). How about "Gtk2::Ex::Recipes"? Ciao, Emmanuele. -- Emmanuele Bassi <[EM

Re: JPG Image in print context

2005-04-28 Thread Emmanuele Bassi
xel buffer (255 value marking and one-byte per pixel, three-byte per pixel and four-byte per pixel, respectively). So, you must convert a JPEG image to the appropriate buffer (using pack). Ciao, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: http://log.emmanuele

Re: JPG Image in print context

2005-04-28 Thread Emmanuele Bassi
Gtk2::Gdk::Pixbuf in what they want and how they want it. Ciao, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: JPG Image in print context

2005-04-28 Thread Emmanuele Bassi
$pixbuf->get_height, $pixbuf->get_rowstride); } $context->showpage; It could be interesting to write an example. Ciao, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: http://log.emmanuelebassi.net ___

Re: JPG Image in print context

2005-04-30 Thread Emmanuele Bassi
::Context::rgbimage is a plain binding of the C function, if this method does not work is a bug in libgnomeprint. Ciao, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: L10n in Gtk2-perl with Locale::Maketext::Lexicon

2005-05-09 Thread Emmanuele Bassi
#x27;s CVS). +++ [1] http://www.emmanuelebassi.net/linux/perl/gnome-hello-perl-0.6.tar.gz Ciao, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.

Re: header row in a TreeView

2005-06-20 Thread Emmanuele Bassi
idoc *and* the Gtk API at http://developer.gnome.org/doc/API/2.0/gtk Regards, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/m

Re: adding entry in nautilus context

2005-06-27 Thread Emmanuele Bassi
ick. I had been thinking about binding this library, but haven't got much time around; plus, toying with GLib runtime modules and Perl is quite out of my XS skills, at the moment. Regards, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: ht

Re: row limit of SimpleList

2005-07-13 Thread Emmanuele Bassi
and optimize that, instead of using SimpleList. Regards, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Gtk2::ImageMenuItem with a custom icon

2005-07-14 Thread Emmanuele Bassi
uf = $form->render_icon('gtk-index', 'menu'); - $menu_item->set_image($pixbuf); + my $image = Gtk2::Image->new_from_pixbuf($pixbuf); + $menu_item->set_image($image); Hint: if the apidoc is ambiguous, go to the C API reference, at: http://developer.gnome.org/

Re: Gtk2 Perl Documentation

2005-07-19 Thread Emmanuele Bassi
se could be done? A: Add recipes and/or FAQ entries on the Wiki[1]. Q: What else? A: Create a wiki-fied version of the tutorial. As you see, there's plenty to be done - and any help would be most welcome. Regards, Emmanuele. +++ [1] http://live.gnome.org/GTK2-Perl -- Emmanuele Bassi <[

Re: Changing default printer of Gnome2::Print::Config

2005-07-30 Thread Emmanuele Bassi
7;t commit it without at least a test run. Regards, Emmanuele. -- Emmanuele Bassi <[EMAIL PROTECTED]> Web site: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Gnome2::GConf 1.020 (stable)

2005-09-07 Thread Emmanuele Bassi
tion fixes. * Wrapped GConfEngine as Gnome2::GConf::Engine. Overview of changes since 1.013 === * The "Differential Engine" release * Fix Gnome2::GConf::Engine reference mechanism. * Use Glib::CodeGen from the stable Glib release. Enjoy, Emmanuele. -- E

Re: Way to remove a GConf dir ?

2005-09-12 Thread Emmanuele Bassi
med on the owner of the engine, so it could be possible to get away with it - but it's not guaranteed to work now or in the future.] Regards, Emmanuele. -- Emmanuele Bassi - <[EMAIL PROTECTED]> Log: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Way to remove a GConf dir ?

2005-09-13 Thread Emmanuele Bassi
is compiled. > Anyway, that's great, it works ;-) So if anybody wants to know, to > delete a dir you just have to $client->unset() all keys in it... I've never had to do it - breaks backward compatibility and stuff - but thanks. I'll add it into the Gnome2::GConf::Clie

Gtk2::SourceView 1.000

2005-09-28 Thread Emmanuele Bassi
e_id=164878 [2] http://search.cpan.org/~ebassi/Gtk2-SourceView-1.000/ -- Emmanuele Bassi - <[EMAIL PROTECTED]> Log: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Patch for Gtk2::Ex::Dialogs (for win32)

2005-09-29 Thread Emmanuele Bassi
Hi, On Thu, 2005-09-29 at 09:17 +0200, Jaap Karssenberg wrote: > File::MimeInfo is a clean perl implementation of the freedesktop.org > mime info specification (which is also used by the gnome implementation). This sounds very, very interesting. Ciao, Emmanuele. -- Emmanuele

Re: misc fixes

2005-10-04 Thread Emmanuele Bassi
ent > the refresh I have to set the clipping region on redraws otherwise I get > bugs. Ah, now you explain - you are writing something that is not really a common use case. > > The changes to get_time() look all right. To pass undef, you'll have > > to call it lik

Re: Speedup insert into treestore

2005-10-09 Thread Emmanuele Bassi
other ways of improving the performances of your code, e.g. populating the child nodes only when the parent is expanded, or setting the height of the cell renderers as fixed if you know that you'll always display your data with the same format. Ciao, Emmanuele. -

Re: Speedup insert into treestore

2005-10-09 Thread Emmanuele Bassi
2, or is there some define that holds > the value? (And how is a "normal" user supposed to know this? :-/) The API at http://developer.gnome.org/doc/API/ should always fill in the Perl apidoc. Ciao, Emmanuele. -- Emmanuele Bassi - <[EMAIL PROTECTED]> Log: http://log.emmanue

Re: Speedup insert into treestore

2005-10-09 Thread Emmanuele Bassi
Hi, On Sun, 2005-10-09 at 19:59 +0200, Florian Schaefer wrote: > Hi Emmanuele! > > On Sun, 09 Oct 2005 19:39:11 +0200, Emmanuele Bassi said: > > [...] > > Strategy 1) is always the best one when updating the contents of a > > TreeModel implementation; the TreeView

Re: Speedup insert into treestore

2005-10-11 Thread Emmanuele Bassi
o; 3. you should really try the 'fixed-height-mode' property for Gtk2::TreeView. ;-) Ciao, Emmanuele. -- Emmanuele Bassi - <[EMAIL PROTECTED]> Log: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Build system

2005-10-13 Thread Emmanuele Bassi
and 2; adding a pkg-config file to the binding libraries, pointing to the C headers and Perl typemaps would increase the ability to actually use the bindings code outside the library case - and also would make ExtUtils::Depend go away, now that I think of it. Comments? LARTs? Ciao, Emmanu

Re: Missing Gtk2::HButtonBox and others

2005-11-14 Thread Emmanuele Bassi
e Gtk2. All widgets and objects are created from C objects and dynamically loaded, so you can't include them directly. Ciao, Emmanuele. -- Emmanuele Bassi - <[EMAIL PROTECTED]> Log: http://log.emmanuelebassi.net ___ gtk-perl-list mail

Gnome2::GConf 1.021

2005-12-27 Thread Emmanuele Bassi
gt;= 0.2 ExtUtils::PkgConfig >= 1.03 Gtk2 >= 1.100 (perl module) Overview of changes since 1.020 === * The "An Address Indicates Where It Is" release. * Wrap Gnome2::GConf::Engine::get_for_addresses. [Emmanuele] Ciao, Emmanuele. -- E

Re: A visual snippet browser

2006-01-19 Thread Emmanuele Bassi
you could at least copy from the C source. ;-) Ciao, Emmanuele. -- Emmanuele Bassi - <[EMAIL PROTECTED]> Log: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Build system

2006-03-12 Thread Emmanuele Bassi
throughout all the modules. Of course, I'm not sure it's the best option - and anyone is more than welcome to propose an alternative solution and point me in the right direction; but I feel that pkg-config, auto-tools integration in the tool chain and standard locations for the build stuff

Re: error dialog not centered

2006-03-18 Thread Emmanuele Bassi
ally move the mouse twice: the first time to the corner, the other time on the centre of the dialog. Thus, you are kindly invited to follow the human interface guidelines in order to ensure both UI consistency with the rest of the platform and the best user experience. Ciao, Emmanuele. -- E

Re: Filechooser in MS Windows style

2006-03-22 Thread Emmanuele Bassi
nd not the standard gnome > style)? This is more a question for gtk-app-devel than gtk-perl. Anyway, the answer is: no. It was planned to use native dialogs, ma no-one really got around it, AFAIR. Ciao, Emmanuele. -- Emmanuele Bassi - <[EMAIL PROTECTED]>

Re: signal for an image

2006-05-17 Thread Emmanuele Bassi
there a container in which to add the image to that > will grab the signal ? Put the Gtk2::Image inside a Gtk2::EventBox and connect to its 'button-press-signal'; you might need to use Gtk2::Widget::add_events on the event box, to add the 'button-press-mask'. Ciao, Emmanuel

Re: need help in tutorial(alpha)

2006-05-18 Thread Emmanuele Bassi
configure all the widgets that are attached to this signal. > > $set->set_value(clamp ($set->value, > >$set->upper - $set->page_size, > >$set->lower)); > > > > t

Re: need help in tutorial(alpha)

2006-05-18 Thread Emmanuele Bassi
l-ish syntax. The style and format style is inside the CVS module. Anyone wants to be my hero? Ciao, Emmanuele. -- Emmanuele Bassi - <[EMAIL PROTECTED]> Log: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org

Re: need help in tutorial(alpha)

2006-05-18 Thread Emmanuele Bassi
Hi Joe, my hero On Thu, 2006-05-18 at 08:37 -0400, Joe Smith wrote: > Emmanuele Bassi wrote: > > ... > > We really, *really* need some hero to take over the tutorial and finish > > it off. ... > > Hey, I've been lurking around here in awe of the great work y

Re: Showing http links in gtk-perl

2006-05-18 Thread Emmanuele Bassi
every LinkButton inside an application - much like you can set the url and email hook for the Gtk2::AboutDialog widget. Ciao, Emmanuele. -- Emmanuele Bassi - <[EMAIL PROTECTED]> Log: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk

Re: Bug in Gtk2::ToggleButton->new_from_stock()

2006-05-28 Thread Emmanuele Bassi
n are not trivial (maybe muppet or Torsten have some patch lying around so I'll be shamed into a corner, though ;-)). Ciao, Emmanuele. -- Emmanuele Bassi - <[EMAIL PROTECTED]> Log: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Bug in Gtk2::ToggleButton->new_from_stock()

2006-06-03 Thread Emmanuele Bassi
Hi muppet, On Fri, 2006-06-02 at 21:05 -0400, muppet wrote: > On May 28, 2006, at 9:15 AM, Emmanuele Bassi wrote: > > > Unfortunately, GObject::constructor has no Perl counterpart: you can > > control the initialisation of an Glib::Object but you can't control >

Re: Gtk2::GLExt build problems

2006-06-03 Thread Emmanuele Bassi
gt; Yes, that fixed it. > > Will commit to cvs if sourceforge ever starts behaving again. Given the shortages and funny CVS status of SF.net, maybe we should discuss moving the gtk2-perl bindings on the gnome.org SVN, as soon as it'll be up (mid-July, after GUADEC, if everything work

Re: What happened to our mail archives ?

2006-06-20 Thread Emmanuele Bassi
of the archives. The sysadmins are at work. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/m

[ANNOUNCE] Gnome2::GConf 1.032 (unstable release)

2006-07-25 Thread Emmanuele Bassi
>= 0.2 ExtUtils::PkgConfig >= 1.03 COPYRIGHT AND LICENSE Copyright (C) 2003-2006 by Emmanuele Bassi <[EMAIL PROTECTED]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software

Re: widget valid signals and properties

2006-07-25 Thread Emmanuele Bassi
er" signal one could hook into? No, and no. Why would you do anything like this is beyond me, given that signals may have very different signatures and require different return values. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http

Re: greying out

2006-08-04 Thread Emmanuele Bassi
On Fri, 2006-08-04 at 18:24 +0100, Dirk Koopman wrote: > How do you grey things like buttons out? I am thinking of the visuals > here rather than the mechanicals (unless that just falls out of the > solution). Gtk2::Widget::set_sensitive() Ciao, Emmanuele. -- Emmanuele Bassi,

Re: changing background colours on buttons (semi-permanently)

2006-08-10 Thread Emmanuele Bassi
ent colours according to the palette, so that an inverted theme (for high contrast rendering of the screen) and a "normal" theme will apply the right colours. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net

Re: Cairo 0.91 (beta)

2006-08-11 Thread Emmanuele Bassi
:Object::Subclass. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Gtk2 docs/tutorials

2006-08-15 Thread Emmanuele Bassi
file.png')); otherwise, there's the hard way: my $image_button = Gtk2::Button->new; $image_button->add(Gtk2::Image->new_from_file('some-file.png')); for further reference, see: perldoc Gtk2::Button perldoc Gtk2::Image Ciao, Emman

Re: Gtk2 docs/tutorials

2006-08-15 Thread Emmanuele Bassi
On Tue, 2006-08-15 at 10:05 -0400, James Muir wrote: > Emmanuele Bassi wrote: > > This won't be covered in a tutorial, but more likely in a recipe-style > > documentation. A Gtk2::Cookbook pod might come out handy, if anyone > > wants to tackle this. *hint* *hint* ;-)

Re: Error compiling Cairo 0.92 and how to fix it

2006-08-20 Thread Emmanuele Bassi
Hi; On Sun, 2006-08-20 at 18:16 -0400, muppet wrote: > [1] In fact, i think Torsten has been doing everything by himself > for the last several months. Anyone who lives near him should buy > him a beer. Actually, more than one beer. And a hug. Ciao, Emmanuele. -- Emmanuele

[ANNOUNCE] Gnome2::GConf 1.040

2006-09-04 Thread Emmanuele Bassi
you also need: ExtUtils::Depends >= 0.2 ExtUtils::PkgConfig >= 1.03 COPYRIGHT AND LICENSE Copyright (C) 2003-2006 by Emmanuele Bassi <[EMAIL PROTECTED]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public Licens

Re: get_maximized

2006-09-06 Thread Emmanuele Bassi
of the event should contain the 'maximized' flag. $window->signal_connect(window_state_event => sub { my ($w, $event) = @_; if ($event->changed_mask & [ 'maximized', ]) { print "The window has been maximized\n"; }

RE: get_maximized

2006-09-06 Thread Emmanuele Bassi
ad Gtk2::Gdk::Event::WindowState - I pointed you in the right direction but this mailing list is not an excuse for not reading the documentation. Anyway, you want to keep a boolean flag ('$is_maximized') around and check if the window has already been maximized or not. The changed_mask sho

Re: get_maximized

2006-09-06 Thread Emmanuele Bassi
zed', ]" return array reference ? > > If the answer to both questions is YES, how will it work ? Sheer magic, or more probably an error due to my badly deteriorating memory. I'll let you decide and, in case, test. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTE

Re: get_maximized

2006-09-06 Thread Emmanuele Bassi
On Wed, 2006-09-06 at 06:54 -0700, Sergei Steshenko wrote: > > --- Emmanuele Bassi <[EMAIL PROTECTED]> wrote: > > > On Wed, 2006-09-06 at 14:54 +0200, Ratcliffe, Jeffrey (Peters) wrote: > > > How do I check whether a window has been maximized or not? > > &

Re: get_maximized

2006-09-06 Thread Emmanuele Bassi
, without being paid a dime for them. I would really like to hope that this is because, like myself, your first language is not english; unfortunately, as I said, this comes after your utter disregard of the work done by the gtk-perl team developers that you have shown in the past on bugzilla and th

Re: using own icons with Gtk2::UIManager

2006-09-09 Thread Emmanuele Bassi
k2::IconSet->new_from_pixbuf($icon); $IconFactory->add($stock_id, $set); } sub init_icons { return if defined $IconFactory; $IconFactory = Gtk2::IconFactory->new(); $IconFactory->add_default(); register_icon('foo', '/path/to/foo.png'); re

Re: Dropdown menu on treeview

2006-09-10 Thread Emmanuele Bassi
button, get the row/column pair using Gtk2::TreeView::get_row_at_pos() using the event coordinates, build a Gtk2::Menu and then use Gtk2::Menu::popup() on it. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: ht

Re: Dropdown menu on treeview

2006-09-10 Thread Emmanuele Bassi
op. If you need to poll a file descriptor, Glib::IO->add_watch() usually does what you want. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-per

Re: using own icons with Gtk2::UIManager

2006-09-11 Thread Emmanuele Bassi
your+query+site%3Amail.gnome.org): the embedded search function of mail.gnome.org has been broken/not so accurate for a while, now. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net _

Re: Where to begin with creating a tree?

2006-09-14 Thread Emmanuele Bassi
GtkTreeView tutorial at: http://scentric.net/tutorial/ and translating it into Perl. If someone feels brave enough can write a small Gtk2::TreeView::Cookbook module based on that; or even a chapter in the gtk2-perl tutorial. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTEC

Re: sounds

2006-09-20 Thread Emmanuele Bassi
"noises" come from? If you want to play with sound (pun intended), you're better off using GStreamer and constructing a pipeline. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___

Re: Creating new widgets

2006-10-13 Thread Emmanuele Bassi
s INIT_INSTANCE. this means that you get to set up the *initial* state of an object's new instance. since you want your object to be constructed differently depending on a constructor property you should override the constructor - but, in perl, you really can't. Ciao, Emmanuel

Re: Creating new widgets

2006-10-13 Thread Emmanuele Bassi
ifferently depending on a constructor property you should override the constructor - but, in perl, you really can't. Ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net _

Re: Creating new widgets

2006-10-13 Thread Emmanuele Bassi
urn calls the init vfunc), but for sake of clarity I'll leave it at that. ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-p

Re: Closing a Glade Window

2006-10-30 Thread Emmanuele Bassi
Hi Cyril; On Mon, 2006-10-30 at 12:43 +0100, Cyril Cheneson wrote: > My question is : how to close the window (from the Glade file) without > quitting the main application? just ->hide() the window if you want to be able to ->show() it again later. if you want to handle the delete-event case au

Re: Closing a Glade Window

2006-10-30 Thread Emmanuele Bassi
hi Cyril - you should keep gtk-perl-list on the loop; On Mon, 2006-10-30 at 15:44 +, Cyril Cheneson wrote: > or, if you don't have Gtk2::Widget::hide_on_delete you can implement it > > like this: > > > > $window->signal_connect(delete_event => sub { $window->hide(); TRUE; }); > my $main = G

Re: Closing a Glade Window

2006-10-31 Thread Emmanuele Bassi
k2::TrayIcon worked on platforms other than linux/X, though. ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mai

Re: Sticky pop-up menus

2006-11-13 Thread Emmanuele Bassi
); $menu->append($item); $item->show(); $menu->popup(undef, undef, undef, undef, $event->button, $event->time); return TRUE; }); $b->show(); Gtk2->main(); 0; ciao, Emmanuel

Re: Hook perl-gtk application into nautilus

2006-11-30 Thread Emmanuele Bassi
erl, so you'll have to use a script; you can bind a script to an action using the nautilus-action extension. ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-perl-li

Re: Tooltips with labels

2006-12-07 Thread Emmanuele Bassi
way: adding a tip to a label means that the label is not clear enough, so you should consider clarifying the content of the label. tip are also used on action widgets. ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.

Re: 3d image border

2006-12-13 Thread Emmanuele Bassi
On Wed, 2006-12-13 at 17:43 +0700, beast wrote: > I have an image and I would like it to have 3D border ( etched-in?). > Which widget suitable for this purpose? Gtk2::Frame with a Gtk2::Image embedded in? ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W

Re: 3d image border

2006-12-13 Thread Emmanuele Bassi
hi; On Wed, 2006-12-13 at 18:17 +0700, beast wrote: > Emmanuele Bassi wrote: > > On Wed, 2006-12-13 at 17:43 +0700, beast wrote: > > > >> I have an image and I would like it to have 3D border ( etched-in?). > >> Which widget suitable for this purpose? > >

Re: need spacer

2006-12-13 Thread Emmanuele Bassi
; > $hbbox->add($spacer); > $hbbox->add($cancel); drop the button box and use a Gtk2::Alignment: Gtk2::HBox + Gtk2::Button [back] + Gtk2::Button [next] + Gtk2::Alignment + Gtk2::Button [cancel] set the alignment to full right and add a padding of 10 px

Re: Gtk2::Assistant [was Re: wizard style program

2006-12-15 Thread Emmanuele Bassi
pile the gtk2-perl bindings against that. most distributions already have both gtk+ and the perl bindings up to date if you don't want to compile stuff yourself. ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net

Re: OT: Default email client

2006-12-15 Thread Emmanuele Bassi
pletely platform independent. if you are targeting another operating system, win32 and osx have their own API for calling email clients; you should check whether there's a Perl module covering those APIs. ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http:/

Re: Glib and libgaim

2006-12-29 Thread Emmanuele Bassi
ead the man pages and pod, but I am unsure of > a few things... if you have specific questions, just ask them here or on the IRC channel #gtk-perl on irc.gnome.org ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emm

Re: Binding Variables to Widgets

2007-01-04 Thread Emmanuele Bassi
and update the variable there: it's called 'event-driven programming' for a reason, you know. ;-) ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Setting a RadioItem created with ItemFactory

2007-01-04 Thread Emmanuele Bassi
AIL PROTECTED]; my $on_change_ref = \&on_change; # set the the action wit value 'SCAN_ADF' as the default $action_group->add_radio_actions($radio_actions_ref, SCAN_ADF, $on_change_ref); ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Setting a RadioItem created with ItemFactory

2007-01-04 Thread Emmanuele Bassi
hi Jeffrey; On Thu, 2007-01-04 at 19:32 +0100, Jeffrey Ratcliffe wrote: > On 04/01/07, Emmanuele Bassi <[EMAIL PROTECTED]> wrote: > > you should not use that: switching to Gtk2::UIManager usually solves > > most issues, and UIManager is at least actively maintained - whi

Re: Setting a RadioItem created with ItemFactory

2007-01-04 Thread Emmanuele Bassi
On Thu, 2007-01-04 at 21:44 +, Emmanuele Bassi wrote: > > Ah. Didn't know that. I'll add switching to the UIManager to the to do > > list. Is there any chance of getting this added to the POD? The same > > applies to FileChooser and FileSelector and I'm sure

Re: Setting a RadioItem created with ItemFactory

2007-01-04 Thread Emmanuele Bassi
hi Torsten; On Fri, 2007-01-05 at 00:24 +0100, Torsten Schoenfeld wrote: > On Thu, 2007-01-04 at 23:03 +0000, Emmanuele Bassi wrote: > > > > hmm. we should really add a marker in the apidoc generator for > > > deprecated objects. > > Good idea! The patches

Re: Setting a RadioItem created with ItemFactory

2007-01-06 Thread Emmanuele Bassi
tespace-only fix commit, I've fixed the patch to go with 8 spaces tabs, and I committed it as such. it would be best to add a modeline to all the pure perl modules, so that everyone working on them would conform to the same coding style. :-) ciao, Emmanuele. -- Emmanuele Bassi, E: [E

Re: Tree Example

2007-01-08 Thread Emmanuele Bassi
g', 'Glib::String'); will create a list holding two columns of strings. the C tutorial can be of help: http://scentric.net/tutorial/ ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___

Re: RadioButton Groups

2007-01-10 Thread Emmanuele Bassi
> b) get which button is active in the group so that I can do something > useful with the value. since Gtk2::RadioButton is a Gtk2::ToggleButton, just use the get_active() method on the radio button. $is_toggled = $radio->get_active(); ciao, Emmanuele. -- Emmanuele B

Re: Passing values to CodeRefs

2007-01-10 Thread Emmanuele Bassi
torial at: http://devel.emmanuelebassi.net/gtk2-perl/tutorial/ (for instance, your question is answered in depth on the page about signals: http://devel.emmanuelebassi.net/gtk2-perl/tutorial/sec-TheoryOfSignalsAndCallbacks.html) and the Gtk2-Perl FAQ on the GNOME wiki: http://live.gnome.or

Re: Run menu action in background

2007-01-11 Thread Emmanuele Bassi
an be found here: http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html And, obviously, on Google. ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___

Re: Local version of GTK2

2007-01-15 Thread Emmanuele Bassi
should do what jhbuild does for you, and set up a sandbox where installing the dependencies of gtk+: glib, cairo, pango, and atk. > Presumably, I will need more recent versions of GLib, Pango, & ATK too? and, for gtk+ >= 2.8, cairo. ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTE

  1   2   3   >