--- deliantra/Deliantra-Client/DC.pm 2006/08/13 03:20:53 1.112 +++ deliantra/Deliantra-Client/DC.pm 2006/08/14 04:34:40 1.114 @@ -211,7 +211,7 @@ sub do_n_dialog { my ($cb) = @_; - my $w = new CFPlus::UI::FancyFrame + my $w = new CFPlus::UI::Toplevel on_delete => sub { $_[0]->destroy; 1 }, has_close_button => 1, ; @@ -285,6 +285,15 @@ }); } ], + ["rename", # first try of an easier use of flint&steel + sub { + &::open_string_query ("Rename item to:", sub { + my ($entry, $txt) = @_; + $::CONN->send ("mark ". pack "N", $self->{tag}); + $::CONN->send ("command rename to <$txt>"); + }); + } + ], ["apply", sub { $::CONN->send ("apply $self->{tag}") }], ( $self->{flags} & F_LOCKED