Please, don't hardcode GUI

From: Hubert Figuiere (hfiguiere_at_teaser.fr)
Date: Tue Jan 06 2004 - 18:46:17 EST

  • Next message: Nathan Bullock: "Question about dialog code"

    Hi,

    Please don't hardcode GUI too much. Even more: avoid doing that in
    platform code.

    One recent example in class AP_UnixDialog_FormatTable and
    AP_UnixDialog_FormatFrame:
    Thickness strings are hardcoded into the .glade file, and then they
    are repeated in the *platform code*. So if you want to change them,
    you need to change 2 files, and it changes only in one platform.

    This is wrong !!!

    This should be in the XP class, and even more, these values should be
    in the text/ sub-tree....

    I'm might change that soon, at the risk of breaking non UNIX
    platforms. You'll be warned one more time.

    Hub

    -- 
    AbiWord maintainer - Lille, France
    http://www.figuiere.net/hub/ 
    GPG fingerprint: 6C44 DB3E 0BF3 EAF5 B433  239A 5FEE 05E6 A56E 15A3
    


    This archive was generated by hypermail 2.1.4 : Tue Jan 06 2004 - 18:45:40 EST