mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 16:27:54 +00:00
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:
parent
8b09ec13e8
commit
705ef73b7f
@ -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"
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user