Skip to content

Commit 1dd1038

Browse files
committed
move data_changed from GObject to Object
1 parent 302b946 commit 1dd1038

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/PDL/Graphics/TriD/Object.pm

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,16 @@ sub clear {
8787
}
8888

8989
sub changed {
90-
my($this) = @_;
91-
print "VALID0 $this\n" if $PDL::Graphics::TriD::verbose;
92-
$this->{ValidList} = 0;
93-
$_->($this) for @{$this->{ChangedSub}};
90+
my($this) = @_;
91+
print "VALID0 $this\n" if $PDL::Graphics::TriD::verbose;
92+
$this->{ValidList} = 0;
93+
$_->($this) for @{$this->{ChangedSub}};
94+
}
95+
96+
# In the future, have this happen automatically by the ndarrays.
97+
sub data_changed {
98+
my($this) = @_;
99+
$this->changed;
94100
}
95101

96102
1;

lib/PDL/Graphics/TriD/Objects.pm

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ sub cdummies { $_[1] }
8080
sub r_type { "" }
8181
sub defcols { $_[0]{Options}{UseDefcols} }
8282

83-
# In the future, have this happen automatically by the ndarrays.
84-
sub data_changed {
85-
my($this) = @_;
86-
$this->changed;
87-
}
88-
8983
package PDL::Graphics::TriD::Points;
9084
use base qw/PDL::Graphics::TriD::GObject/;
9185
sub get_valid_options { +{

0 commit comments

Comments
 (0)