Re: [gtk-list] Re: Another Perl/Gtk 0.6123 question



Hi Lupus,

Paolo Molaro wrote:
> 
> On Thu, Aug 26, 1999 at 10:07:37PM +0000, Dermot Musgrove wrote:
> > I cannot access the Gtk::Window methods from a Gtk::Dialog object. For
> > instance, I cannot call $dialog_ref->allow_grow().
> >
> > Am I right to think that Gtk::Dialog should be derived from Gtk::Window 
> > or is there another way to set the Gtk::Window properties?
> 
> Could you provide a test case?
> allow_grow doesn't exist as a method for GtkWindows, though.
------------------------------ This works:
  $widgets->{'ReferenceForm'} = new Gtk::Window;
  $widgets->{'ReferenceForm'}->allow_grow('1' );

------------------------------ This works:
  $widgets->{'Gnome_About2'} = new Gnome::About('Reference', '0.4.1', 
    'Copyright Sat Sep  4 04:33:18 BST 1999', 'Dermot Musgrove 
    <dermot.musgrove\@virgin.net>', 'This is a reference form to test all 
    asdpects of Glade-Perl source code generator. It is only an example of 
    all the widget types and not all the possible properties', 
    '/home/dermot/Glade/Reference/pixmaps/Logo.xpm');
  $widgets->{'Gnome_About2'}->allow_grow('1' );

------------------------------ This works:
  $widgets->{'Gtk_Fontselectiondialog1'} = new   
    Gtk::FontSelectionDialog('Select Font' );
  $widgets->{'Gtk_Fontselectiondialog1'}->allow_grow('1' );

------------------------------ This works:
  $widgets->{'Gtk_Inputdialog1'} = new Gtk::InputDialog;
  $widgets->{'Gtk_Inputdialog1'}->allow_grow('1' );


------------------------------ But this doesn't work:
  $widgets->{'BusFrame'} = new Gtk::Dialog;
  $widgets->{'BusFrame'}->allow_grow('1' );

The message I get is:
Can't locate object method "allow_grow" via package "Gtk::Dialog" at
/Generated/BusForm.pm line 144

I am guessing that allow_shrink() and auto_shrink() probably won't work
either. At the moment I am constructing a Gtk::Window instead and this
gives most of the functionality but not all.

I'm sorry that I can't be more helpful and I hope that it is not another
stupid mistake on my part.

Regards, Dermot




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]