wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src/widgets file_chooser.cpp textbox.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src/widgets file_chooser.cpp textbox.cpp
Date: Thu, 18 Nov 2004 15:40:58 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/11/18 20:35:22

Modified files:
        src/widgets    : file_chooser.cpp textbox.cpp 

Log message:
        Remove all these "it looks nicer" crap and put them where they belong. 
If it really looks nicer, the whole game should benefit from it, and not just 
the editor.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/widgets/file_chooser.cpp.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/widgets/textbox.cpp.diff?tr1=1.65&tr2=1.66&r1=text&r2=text

Patches:
Index: wesnoth/src/widgets/file_chooser.cpp
diff -u wesnoth/src/widgets/file_chooser.cpp:1.17 
wesnoth/src/widgets/file_chooser.cpp:1.18
--- wesnoth/src/widgets/file_chooser.cpp:1.17   Thu Nov 18 20:26:34 2004
+++ wesnoth/src/widgets/file_chooser.cpp        Thu Nov 18 20:35:21 2004
@@ -76,15 +76,10 @@
                }
        }
        file_list_.set_items(to_show);
-       // This will prevent the "box" with filenames from changing size on
-       // every redisplay, it looks better when it's static.
-       file_list_.set_width(width());
        current_path_label_.set_text(current_dir_);
 }
 
 void file_chooser::display_chosen_file() {
-       // Clearing is not really necessary, but things end up nicer if we do.
-       filename_textbox_.clear(); 
        if (is_directory(chosen_file_)) {
                filename_textbox_.set_text(strip_last_delim(chosen_file_) + 
path_delim_);
        }
Index: wesnoth/src/widgets/textbox.cpp
diff -u wesnoth/src/widgets/textbox.cpp:1.65 
wesnoth/src/widgets/textbox.cpp:1.66
--- wesnoth/src/widgets/textbox.cpp:1.65        Thu Nov 18 04:08:33 2004
+++ wesnoth/src/widgets/textbox.cpp     Thu Nov 18 20:35:21 2004
@@ -1,4 +1,4 @@
-/* $Id: textbox.cpp,v 1.65 2004/11/18 04:08:33 Sirp Exp $ */
+/* $Id: textbox.cpp,v 1.66 2004/11/18 20:35:21 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -61,6 +61,7 @@
 {
        text_ = string_to_wstring(text);
        cursor_ = text_.size();
+       text_pos_ = 0;
        selstart_ = -1;
        selend_ = -1;
        set_dirty(true);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]