gui2/tchat_log: More minor cosmetic changes

* Get rid of a useless column with spacers and the Close button; the
   latter has been moved to the previous column and its horizontal
   alignment changed accordingly.

 * Disable the pages slider when the page count is 1.
This commit is contained in:
Ignacio R. Morelle 2011-12-12 18:31:30 +00:00
parent 8b09ec13e8
commit 705ef73b7f
2 changed files with 2 additions and 30 deletions

View File

@ -38,13 +38,6 @@
label = _ "Chat Log"
[/label]
[/column]
[column]
grow_factor = 0
[spacer]
definition = "default"
[/spacer]
[/column]
[/row]
[row] #menu
grow_factor = 0
@ -101,14 +94,6 @@
[/row]
[/grid]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
[spacer]
definition = "default"
[/spacer]
[/column]
[/row]
[row] #choice
grow_factor="7"
@ -123,29 +108,15 @@
label = ""
[/scroll_label]
[/column]
[column]
grow_factor = 0
[spacer]
definition = "default"
[/spacer]
[/column]
[/row]
[row] #status
grow_factor = 0
[column]
grow_factor = 7
border = "all"
border_size = 5
horizontal_alignment = "left"
[spacer]
definition = "default"
[/spacer]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "cancel"
definition = "default"

View File

@ -208,6 +208,7 @@ public:
model_.populate_chat_message_list(first,last);
model_.page_number->set_minimum_value(1);
model_.page_number->set_maximum_value(count_of_pages);
model_.page_number->set_active(count_of_pages > 1);
LOG_CHAT_LOG << "Maximum value of page number slider: " << count_of_pages << std::endl;
model_.page_number->set_value(page+1);
LOG_CHAT_LOG << "Exiting tchat_log::controller::update_view_from_model" << std::endl;