… | |
… | |
172 | $self->{widget}->set_search_column(1); |
172 | $self->{widget}->set_search_column(1); |
173 | |
173 | |
174 | my $column = $self->{rlcolumns}[0] = |
174 | my $column = $self->{rlcolumns}[0] = |
175 | Gtk2::TreeViewColumn->new_with_attributes ("Name", $gtk::text_renderer, text => 1); |
175 | Gtk2::TreeViewColumn->new_with_attributes ("Name", $gtk::text_renderer, text => 1); |
176 | $column->set_sort_column_id(1); |
176 | $column->set_sort_column_id(1); |
177 | $column->set(resizable => 1); |
|
|
178 | $column->set(sizing => 'fixed'); |
177 | $column->set(sizing => 'grow-only'); |
179 | gtk::state $column, "userlist::model::Name", undef, column_size => 120; |
|
|
180 | $self->{widget}->append_column ($column); |
178 | $self->{widget}->append_column ($column); |
181 | |
179 | |
182 | my $column = $self->{rlcolumns}[1] = |
180 | my $column = $self->{rlcolumns}[1] = |
183 | Gtk2::TreeViewColumn->new_with_attributes ("Rank", $gtk::text_renderer, text => 2); |
181 | Gtk2::TreeViewColumn->new_with_attributes ("Rk", $gtk::text_renderer, text => 2); |
184 | $column->set_sort_column_id(3); |
182 | $column->set_sort_column_id(3); |
185 | $column->set(resizable => 1); |
|
|
186 | $column->set(sizing => 'fixed'); |
183 | $column->set(sizing => 'grow-only'); |
187 | gtk::state $column, "userlist::model::Rank", undef, column_size => 40; |
|
|
188 | $self->{widget}->append_column ($column); |
184 | $self->{widget}->append_column ($column); |
189 | |
185 | |
190 | my $column = $self->{rlcolumns}[2] = |
186 | my $column = $self->{rlcolumns}[2] = |
191 | Gtk2::TreeViewColumn->new_with_attributes ("Flags", $gtk::text_renderer, text => 4); |
187 | Gtk2::TreeViewColumn->new_with_attributes ("Flags", $gtk::text_renderer, text => 4); |
192 | $column->set(resizable => 1); |
188 | $column->set(resizable => 1); |
193 | $column->set(sizing => 'fixed'); |
189 | $column->set(sizing => 'grow-only'); |
194 | gtk::state $column, "userlist::model::Flags", undef, column_size => 80; |
|
|
195 | $self->{widget}->append_column ($column); |
190 | $self->{widget}->append_column ($column); |
196 | |
191 | |
197 | $self->{widget}->signal_connect(row_activated => sub { |
192 | $self->{widget}->signal_connect(row_activated => sub { |
198 | my ($widget, $path, $column) = @_; |
193 | my ($widget, $path, $column) = @_; |
199 | my $user = $self->{model}->get ($self->{model}->get_iter ($path), 0); |
194 | my $user = $self->{model}->get ($self->{model}->get_iter ($path), 0); |