Changeset 923bcadf10d4814b7cfb10c6f52f0434258ff754

Show
Ignore:
Timestamp:
01/03/09 02:38:04 (4 years ago)
Author:
Armin Burgmeier <armin@…>
Parents:
c66abc31de85dace6d89600a4638b1993978f0e4
Children:
567ed379efd8466c19f08e63ba4a08cd8d514085
git-committer:
Armin Burgmeier <armin@arbur.net> / 2009-01-03T02:38:04Z+0100
Message:

Remember previous host names in direct connection entry

2009-01-02 Armin Burgmeier <armin@…>

  • code/util/historyentry.hpp:
  • code/util/historyentry.cpp:
  • code/util/Makefile.am: Added a HistoryEntry? class which allows scrolling through past entries in a GtkEntry?, optionally saving and restoring the history from/to disk.
  • code/core/browser.hpp:
  • code/core/browser.cpp: Use a history entry for the hostname entry.
Files:
2 added
4 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rc66abc3 r923bcad  
     12009-01-02  Armin Burgmeier  <armin@arbur.net> 
     2 
     3        * code/util/historyentry.hpp: 
     4        * code/util/historyentry.cpp: 
     5        * code/util/Makefile.am: Added a HistoryEntry class which allows 
     6        scrolling through past entries in a GtkEntry, optionally saving and 
     7        restoring the history from/to disk. 
     8 
     9        * code/core/browser.hpp: 
     10        * code/core/browser.cpp: Use a history entry for the hostname entry. 
     11 
    1122008-12-31  Armin Burgmeier  <armin@arbur.net> 
    213 
  • code/core/browser.cpp

    rcfae6a6 r923bcad  
    4141        m_expander(_("_Direct Connection"), true), 
    4242        m_hbox(false, 6), 
    43         m_label_hostname(_("Host Name:")) 
     43        m_label_hostname(_("Host Name:")), 
     44        m_entry_hostname(config_filename(GOBBY_CONFIGDIR, "recent_hosts"), 5) 
    4445{ 
    4546        m_label_hostname.show(); 
     
    238239                sigc::mem_fun(*this, &Browser::on_resolv_error)); 
    239240 
     241        m_entry_hostname.commit(); 
    240242        m_entry_hostname.set_text(""); 
    241243 
  • code/core/browser.hpp

    r4d4ee96 r923bcad  
    2323#include "core/preferences.hpp" 
    2424#include "util/resolv.hpp" 
     25#include "util/historyentry.hpp" 
    2526 
    2627#include <libinfgtk/inf-gtk-io.h> 
     
    130131        Gtk::HBox m_hbox; 
    131132        Gtk::Label m_label_hostname; 
    132         Gtk::Entry m_entry_hostname; 
     133        HistoryEntry m_entry_hostname; 
    133134 
    134135        ResolvMap m_resolv_map; 
  • code/util/Makefile.am

    ra618792 r923bcad  
    66        config.cpp \ 
    77        file.cpp \ 
     8        historyentry.cpp \ 
    89        i18n.cpp \ 
    910        resolv.cpp \ 
     
    1617        defaultaccumulator.hpp \ 
    1718        file.hpp \ 
     19        historyentry.hpp \ 
    1820        i18n.hpp \ 
    1921        resolv.hpp \