Re: Release: 2008.233.0533Z-odin
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 booted my laptop up into Windows, installed camelbox, fired up Sprog and it worked! (Yay for Perl's cross-platform portability). There are a few bits of functionality that don't work quite right but the fact that it runs at all is kind of amazing. Hopefully I'll be able to put some time into fixing the broken bits soonish. The downside of all this was that I experienced Windows again for the first time in a while and was reminded of what a woeful environment it is for getting things done :-( Thanks again Grant On Wed, 2008-08-20 at 15:19 -0700, spicy jack wrote: > Hi, > > I just posted a new release of Camelbox, a Gtk2-Perl stack for > Windows. More info, including a link to the installer, changes for > this release, and upgrade recommendations, can be found here: > > http://groups.google.com/group/camelbox/t/d96a0947c07b61db > > Major changes for this release include PostgreSQL support via DBD::Pg, > and bundling of the 'Sprog' application and the Gtk2::Ex::DBI and > Gtk2::Ex::Datasheet:DBI modules. > > Thanks, > > Brian > ___ > 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
Re: Subclassing Gtk2::GladeXML
>> I was sub-classing Gtk2::GladeXML (I have a print dialog for a large >> number of reports, each report has its own 'options' dialog it can >> display - which I have all in 1 glade file that I want to keep >> separate from the rest of the program, and want to create some helper >> functions that I want to access through the glade object. >> >> The issue I ran into (and was able to "solve") is that after sub- >> classing Gtk2::GladeXML, I can't say >> >> $self->get_widget('winReports'); >> >> I get an undefined value returned. However, if say it as so... it works >> just fine. >> >> &Gtk2::GladeXML::get_widget($self, 'winReports'); >> >> Is this a bug or is does this operate this way for a specific reason? > >A minimal example that exhibits this problem would go a long way towards the >answer. The >immediate question i have is "are you writing the code in some >odd way that causes the object to >be blessed incorrectly?" Here is the beginning lines of the module. package GTIMs::GUI::Dialog::Report; use warnings; use strict; use Carp qw/carp cluck/; use GTIMs; use Glib qw(TRUE FALSE); use Gtk2; use Gtk2::GladeXML; use Gtk2::Ex::DateEntry; use base qw(Gtk2::GladeXML); sub new { my $class = shift; my $self = bless Gtk2::GladeXML->new('lib/widgets/dlg_report.glade'), $class; $self->signal_autoconnect_from_package($class); $self->get_widget('winReports')->{GUI} = $self; $self->do_winReports_date_widgets_setup; $self->do_winReports_treeView_setup; $self->do_winReports_treeView_populate; return $self; } I can get away with this, and get the behavior that I want. The no warnings; use warnings; statements because I get a warning that get_widget has been redefined... no warnings; sub get_widget { my ($self, $widget) = @_; &Gtk2::GladeXML::get_widget($self, $widget); } use warnings; Im running windows 32, GTK+/Win32 Runtime Environment 2.8.20-1, ActiveState Perl 5.8.8 build 819. (The distribution from lostmind.de/gtk-perl/) ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
RE: Re: Subclassing Gtk2::GladeXML
I've figured it out. I did have get_widget redefined in the package GTIMs. (It was exported). ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Re: Release: 2008.233.0533Z-odin
On Thu, Aug 21, 2008 at 3:28 AM, Grant McLean <[EMAIL PROTECTED]> wrote: > Hi Brian (or should I call you Spicy?) Brian works. > The downside of all this was that I experienced Windows again for the > first time in a while and was reminded of what a woeful environment it > is for getting things done :-( It's not so bad; I have a copy of gvim installed, Camelbox includes a decent shell that I can actually write POSIX-compatable shell scripts for, the scripts I have written have generally run on *NIX and Windows if I originally programmed them that way (no hardcoding of paths for example). Firefox works the same on both platforms. It's not as seksi as my Mac, but it's still livable. For computers that can't be slicked to run something besides Windows (like my work laptop), it's another option. Thanks, Brian ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list
table with borders, bg, row colors etc...
Hey all, I think most us are experienced with HTML Tables with CSS to season them. Bottom borders, border colors, cell background colors etc... Evet some javascript to have interactivity with each cell and row. Now I google but I cannot find anything usefull to Table styling in Gtk2. How can we style a Gtk2 table like an HTML Table? Any tips? -- Veli Ogla Sungutay http://gui-rd.org ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list