URL:
  <http://gna.org/bugs/?14345>

                 Summary: [gtk] Use an unique inputline
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: samedi 19.09.2009 à 13:14
                Category: client-gtk-2.0
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.2.0

    _______________________________________________________

Details:

Instead of having 2 separated input lines for the start page and the game
page, this patch use the same widget.  Also, the featured text toolkit is
also unique.

This will fix the following bugs:
* When typing something on the entry when the page changes (e.g. game
starting), the entry keeps the message you were typing.
* The foreground and background colors selected in the featured text toolkit
are the same when you switch the pages.
* The toolkit doesn't appear or disappear when you switch pages without you
asked it.

Implementation:
* The input line toolkit is created in chatline_init().  It is an unique
static widget.  This widget is reparented every time a
'intputline_toolkit_view' becomes visible.  Note that the behaviour if 2
intputline_toolkit_view are created in the same page is undefined.
* The global 'inputline' widget pointer is removed.  The public accessor
are:
bool inputline_has_focus();
void inputline_grab_focus();
* Now, the featured text toolkit is hiden by default.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: samedi 19.09.2009 à 13:14  Name: trunk_S2_2_unique_inputline.diff 
Size: 18 ko   By: pepeto

<http://gna.org/bugs/download.php?file_id=6765>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?14345>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to