ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/kgsueme/kgsueme/gtk.pl
(Generate patch)

Comparing kgsueme/kgsueme/gtk.pl (file contents):
Revision 1.9 by pcg, Sun Jun 1 05:18:15 2003 UTC vs.
Revision 1.10 by pcg, Sun Jun 1 06:07:12 2003 UTC

18 } 18 }
19} 19}
20 20
21# grr... more gtk+ brokenness 21# grr... more gtk+ brokenness
22my %get = ( 22my %get = (
23 #d#TYPOE tre_
24 window_size => sub { [ ($_[0]->allocation->values)[2,3] ] }, 23 window_size => sub { [ ($_[0]->allocation->values)[2,3] ] },
25 #window_pos => sub { die KGS::Listener::Debug::dumpval [ $_[0]->get_root_origin ] }, 24 #window_pos => sub { die KGS::Listener::Debug::dumpval [ $_[0]->get_root_origin ] },
26 column_size => sub { $_[0]->get("width") || $_[0]->get("fixed_width") }, 25 column_size => sub { $_[0]->get("width") || $_[0]->get("fixed_width") },
27 modelsortorder => sub { [ $_[0]->gtk_tree_sortable_get_sort_column_id ] }, 26 modelsortorder => sub { [ $_[0]->get_sort_column_id ] },
28); 27);
29 28
30my %set = ( 29my %set = (
31 window_size => sub { $_[0]->set_default_size (@{$_[1]}) }, 30 window_size => sub { $_[0]->set_default_size (@{$_[1]}) },
32 #window_pos => sub { $_[0]->set_uposition (@{$_[1]}) if @{$_[1]} }, 31 #window_pos => sub { $_[0]->set_uposition (@{$_[1]}) if @{$_[1]} },
33 column_size => sub { $_[0]->set (fixed_width => $_[1]) }, 32 column_size => sub { $_[0]->set (fixed_width => $_[1]) },
34 modelsortorder => sub { $_[0]->gtk_tree_sortable_set_sort_column_id (@{$_[1]}) }, 33 modelsortorder => sub { $_[0]->set_sort_column_id (@{$_[1]}) },
35); 34);
36 35
37my %widget; 36my %widget;
38 37
39sub state { 38sub state {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines