1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/usr/bin/perl -w
use strict;
use Gtk2::TestHelper tests => 5, noinit => 1;
# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/t/GtkTable.t,v 1.5 2004/02/03 22:27:20 kaffeetisch Exp $
my $table = Gtk2::Table -> new(5, 5, 1);
$table -> resize(23, 42);
my $label = Gtk2::Label -> new("Bla");
my $button = Gtk2::Button -> new("Bla");
$table -> attach($label, 0, 1, 0, 1, "expand", "shrink", 1, 1);
$table -> attach_defaults($button, 0, 1, 1, 2);
$table -> set_row_spacing(1, 5);
is($table -> get_row_spacing(1), 5);
$table -> set_col_spacing(1, 5);
is($table -> get_col_spacing(1), 5);
$table -> set_row_spacings(5);
is($table -> get_default_row_spacing(), 5);
$table -> set_col_spacings(5);
is($table -> get_default_col_spacing(), 5);
$table -> set_homogeneous(0);
ok(! $table -> get_homogeneous());
__END__
Copyright (C) 2003 by the gtk2-perl team (see the file AUTHORS for the
full list). See LICENSE for more information.
|