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

Comparing kgsueme/kgsueme/gamelist.pl (file contents):
Revision 1.2 by pcg, Sat May 31 14:15:12 2003 UTC vs.
Revision 1.3 by pcg, Sat May 31 14:21:16 2003 UTC

35 $column->set(sizing => 'fixed'); 35 $column->set(sizing => 'fixed');
36 gtk::state $column, "gamelist::model::Room", undef, column_size => 80; 36 gtk::state $column, "gamelist::model::Room", undef, column_size => 80;
37 $view->append_column ($column); 37 $view->append_column ($column);
38 38
39 push @{$self->{rlcolumns}}, my $column = 39 push @{$self->{rlcolumns}}, my $column =
40 Gtk2::TreeViewColumn->new_with_attributes ("Type", $gtk::text_renderer, text => 2); 40 Gtk2::TreeViewColumn->new_with_attributes ("T", $gtk::text_renderer, text => 2);
41 $column->set_sort_column_id(2); 41 $column->set_sort_column_id(2);
42 $column->set(resizable => 1);
43 $column->set(sizing => 'fixed'); 42 $column->set(sizing => 'grow-only');
44 gtk::state $column, "gamelist::model::Type", undef, column_size => 20;
45 $view->append_column ($column); 43 $view->append_column ($column);
46 44
47 push @{$self->{rlcolumns}}, my $column = 45 push @{$self->{rlcolumns}}, my $column =
48 Gtk2::TreeViewColumn->new_with_attributes ("Owner", $gtk::text_renderer, text => 3); 46 Gtk2::TreeViewColumn->new_with_attributes ("Owner", $gtk::text_renderer, text => 3);
49 $column->set_sort_column_id(3); 47 $column->set_sort_column_id(3);
53 $view->append_column ($column); 51 $view->append_column ($column);
54 52
55 push @{$self->{rlcolumns}}, my $column = 53 push @{$self->{rlcolumns}}, my $column =
56 Gtk2::TreeViewColumn->new_with_attributes ("Rk", $gtk::text_renderer, text => 4); 54 Gtk2::TreeViewColumn->new_with_attributes ("Rk", $gtk::text_renderer, text => 4);
57 $column->set_sort_column_id(5); 55 $column->set_sort_column_id(5);
58 $column->set(resizable => 1);
59 $column->set(sizing => 'fixed'); 56 $column->set(sizing => 'grow-only');
60 gtk::state $column, "gamelist::model::Rk", undef, column_size => 20;
61 $view->append_column ($column); 57 $view->append_column ($column);
62 } 58 }
63 59
64 push @{$self->{rlcolumns}}, my $column = 60 push @{$self->{rlcolumns}}, my $column =
65 Gtk2::TreeViewColumn->new_with_attributes ("Info", $gtk::text_renderer, text => 6); 61 Gtk2::TreeViewColumn->new_with_attributes ("Info", $gtk::text_renderer, text => 6);
66 $column->set(resizable => 1); 62 $column->set(resizable => 1);
67 $column->set(sizing => 'fixed'); 63 $column->set(sizing => 'autosize');
68 gtk::state $column, "gamelist::model::Info", undef, column_size => 80; 64 gtk::state $column, "gamelist::model::Info", undef, column_size => 80;
69 $self->{view1}->append_column ($column); 65 $self->{view1}->append_column ($column);
70 66
71 push @{$self->{rlcolumns}}, my $column = 67 push @{$self->{rlcolumns}}, my $column =
72 Gtk2::TreeViewColumn->new_with_attributes ("Notes", $gtk::text_renderer, text => 7); 68 Gtk2::TreeViewColumn->new_with_attributes ("Notes", $gtk::text_renderer, text => 7);
73 $column->set(resizable => 1); 69 $column->set(resizable => 1);
74 $column->set(sizing => 'fixed'); 70 $column->set(sizing => 'autosize');
75 gtk::state $column, "gamelist::model::Notes", undef, column_size => 200; 71 gtk::state $column, "gamelist::model::Notes", undef, column_size => 200;
76 $self->{view1}->append_column ($column); 72 $self->{view1}->append_column ($column);
77 73
78 ########### 74 ###########
79 75
80 push @{$self->{rlcolumns}}, my $column = 76 push @{$self->{rlcolumns}}, my $column =
81 Gtk2::TreeViewColumn->new_with_attributes ("Opponent", $gtk::text_renderer, text => 6); 77 Gtk2::TreeViewColumn->new_with_attributes ("Opponent", $gtk::text_renderer, text => 6);
82 $column->set(resizable => 1);
83 $column->set(sizing => 'fixed'); 78 $column->set(sizing => 'fixed');
84 gtk::state $column, "gamelist::model::Opponent", undef, column_size => 120; 79 gtk::state $column, "gamelist::model::Opponent", undef, column_size => 120;
85 $self->{view2}->append_column ($column); 80 $self->{view2}->append_column ($column);
86 81
87 push @{$self->{rlcolumns}}, my $column = 82 push @{$self->{rlcolumns}}, my $column =
88 Gtk2::TreeViewColumn->new_with_attributes ("Rk", $gtk::text_renderer, text => 7); 83 Gtk2::TreeViewColumn->new_with_attributes ("Rk", $gtk::text_renderer, text => 7);
89 $column->set_sort_column_id(8); 84 $column->set_sort_column_id(8);
90 $column->set(resizable => 1);
91 $column->set(sizing => 'fixed'); 85 $column->set(sizing => 'grow-only');
92 gtk::state $column, "gamelist::model::Rk", undef, column_size => 20;
93 $self->{view2}->append_column ($column); 86 $self->{view2}->append_column ($column);
94 87
95 push @{$self->{rlcolumns}}, my $column = 88 push @{$self->{rlcolumns}}, my $column =
96 Gtk2::TreeViewColumn->new_with_attributes ("Mv", $gtk::int_renderer, text => 9); 89 Gtk2::TreeViewColumn->new_with_attributes ("Mv", $gtk::int_renderer, text => 9);
97 $column->set_sort_column_id(7); 90 $column->set_sort_column_id(7);
98 $column->set(resizable => 1);
99 $column->set(sizing => 'fixed'); 91 $column->set(sizing => 'grow-only');
100 gtk::state $column, "gamelist::model::Mv", undef, column_size => 40;
101 $self->{view2}->append_column ($column); 92 $self->{view2}->append_column ($column);
102 93
103 push @{$self->{rlcolumns}}, my $column = 94 push @{$self->{rlcolumns}}, my $column =
104 Gtk2::TreeViewColumn->new_with_attributes ("Ob", $gtk::int_renderer, text => 10); 95 Gtk2::TreeViewColumn->new_with_attributes ("Ob", $gtk::int_renderer, text => 10);
105 $column->set_sort_column_id(8); 96 $column->set_sort_column_id(8);
106 $column->set(resizable => 1);
107 $column->set(sizing => 'fixed'); 97 $column->set(sizing => 'grow-only');
108 gtk::state $column, "gamelist::model::Ob", undef, column_size => 40;
109 $self->{view2}->append_column ($column); 98 $self->{view2}->append_column ($column);
110 99
111 push @{$self->{rlcolumns}}, my $column = 100 push @{$self->{rlcolumns}}, my $column =
112 Gtk2::TreeViewColumn->new_with_attributes ("Info", $gtk::text_renderer, text => 11); 101 Gtk2::TreeViewColumn->new_with_attributes ("Info", $gtk::text_renderer, text => 11);
113 $column->set(resizable => 1); 102 $column->set(resizable => 1);
114 $column->set(sizing => 'fixed'); 103 $column->set(sizing => 'autosize');
115 gtk::state $column, "gamelist::model::Info", undef, column_size => 120; 104 gtk::state $column, "gamelist::model::Info", undef, column_size => 120;
116 $self->{view2}->append_column ($column); 105 $self->{view2}->append_column ($column);
117 106
118 ########### 107 ###########
119 108

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines