mail[Wesnoth-commits] r28718 - in /trunk/src/gui: dialogs/ widgets/


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 18, 2008 - 18:24:
Author: mordante
Date: Mon Aug 18 18:24:14 2008
New Revision: 28718

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28718&view=rev
Log:
Remove twindow::recalculate_size() it was turned into a nop and is really no
longer needed.

Modified:
    trunk/src/gui/dialogs/editor_resize_map.cpp
    trunk/src/gui/dialogs/language_selection.cpp
    trunk/src/gui/dialogs/mp_connect.cpp
    trunk/src/gui/dialogs/mp_create_game.cpp
    trunk/src/gui/dialogs/mp_method_selection.cpp
    trunk/src/gui/widgets/window.hpp
    trunk/src/gui/widgets/window_builder.cpp

Modified: trunk/src/gui/dialogs/editor_resize_map.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/editor_resize_map.cpp?rev=28718&r1=28717&r2=28718&view=diff
==============================================================================
--- trunk/src/gui/dialogs/editor_resize_map.cpp (original)
+++ trunk/src/gui/dialogs/editor_resize_map.cpp Mon Aug 18 18:24:14 2008
@@ -111,7 +111,6 @@
        }
        direction_buttons_[0]->set_value(true);
        update_expand_direction(window);
-       window.recalculate_size();
 }
 
 /** Convert a coordinate on a 3  by 3 grid to an index, return 9 for out of 
bounds */

Modified: trunk/src/gui/dialogs/language_selection.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/language_selection.cpp?rev=28718&r1=28717&r2=28718&view=diff
==============================================================================
--- trunk/src/gui/dialogs/language_selection.cpp (original)
+++ trunk/src/gui/dialogs/language_selection.cpp Mon Aug 18 18:24:14 2008
@@ -69,8 +69,6 @@
 
                list->set_row_active(list->get_item_count() - 1, 
lang.available());
        }
-
-       window.recalculate_size();
 }
 
 void tlanguage_selection::post_show(twindow& window)

Modified: trunk/src/gui/dialogs/mp_connect.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/mp_connect.cpp?rev=28718&r1=28717&r2=28718&view=diff
==============================================================================
--- trunk/src/gui/dialogs/mp_connect.cpp (original)
+++ trunk/src/gui/dialogs/mp_connect.cpp Mon Aug 18 18:24:14 2008
@@ -100,8 +100,6 @@
 
                list->add_row(data);
        }
-
-       window.recalculate_size();
 }
 
 void tmp_server_list::post_show(twindow& window)

Modified: trunk/src/gui/dialogs/mp_create_game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/mp_create_game.cpp?rev=28718&r1=28717&r2=28718&view=diff
==============================================================================
--- trunk/src/gui/dialogs/mp_create_game.cpp (original)
+++ trunk/src/gui/dialogs/mp_create_game.cpp Mon Aug 18 18:24:14 2008
@@ -123,7 +123,6 @@
        }
 
        update_map_settings(window);
-       window.recalculate_size();
 }
 
 void tmp_create_game::post_show(twindow& window)

Modified: trunk/src/gui/dialogs/mp_method_selection.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/mp_method_selection.cpp?rev=28718&r1=28717&r2=28718&view=diff
==============================================================================
--- trunk/src/gui/dialogs/mp_method_selection.cpp (original)
+++ trunk/src/gui/dialogs/mp_method_selection.cpp Mon Aug 18 18:24:14 2008
@@ -66,8 +66,6 @@
 
        window.add_to_keyboard_chain(list);
        window.add_to_keyboard_chain(user_widget);
-
-       window.recalculate_size();
 }
 
 void tmp_method_selection::post_show(twindow& window)

Modified: trunk/src/gui/widgets/window.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/window.hpp?rev=28718&r1=28717&r2=28718&view=diff
==============================================================================
--- trunk/src/gui/widgets/window.hpp (original)
+++ trunk/src/gui/widgets/window.hpp Mon Aug 18 18:24:14 2008
@@ -46,8 +46,6 @@
 class twindow : public tpanel, public tevent_handler
 {
 public:
-       // FIXME this should be removed as well, but easy for the outside 
world to keep it a bit longer...
-       void recalculate_size() { /*NOP*/ }
        twindow(CVideo& video,
                tformula<unsigned>x,
                tformula<unsigned>y,

Modified: trunk/src/gui/widgets/window_builder.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/window_builder.cpp?rev=28718&r1=28717&r2=28718&view=diff
==============================================================================
--- trunk/src/gui/widgets/window_builder.cpp (original)
+++ trunk/src/gui/widgets/window_builder.cpp Mon Aug 18 18:24:14 2008
@@ -96,7 +96,6 @@
                }
        }
 
-       window.recalculate_size();
        window.add_to_keyboard_chain(&window);
 
        return window;




Related Messages


Powered by MHonArc, Updated Mon Aug 18 18:42:51 2008