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,
at_least_version => [2, 6, 0, "GtkMenuToolButton is new in 2.6"];
# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/t/GtkMenuToolButton.t,v 1.2 2005/09/18 15:07:22 kaffeetisch Exp $
my $label = Gtk2::Label -> new("Urgs");
my $button = Gtk2::MenuToolButton -> new($label, "Urgs");
isa_ok($button, "Gtk2::MenuToolButton");
$button = Gtk2::MenuToolButton -> new(undef, undef);
isa_ok($button, "Gtk2::MenuToolButton");
$button = Gtk2::MenuToolButton -> new_from_stock("gtk-ok");
isa_ok($button, "Gtk2::MenuToolButton");
my $menu = Gtk2::Menu -> new();
$button -> set_menu($menu);
is($button -> get_menu(), $menu);
$button -> set_menu(undef);
is($button -> get_menu(), undef);
my $tooltips = Gtk2::Tooltips -> new();
$button -> set_arrow_tooltip($tooltips, "Urgs", "Urgs");
__END__
Copyright (C) 2004 by the gtk2-perl team (see the file AUTHORS for the
full list). See LICENSE for more information.
|