[Pidgin] #12451: XMPP: default user directory configuration

Pidgin trac at pidgin.im
Wed Sep 1 15:55:19 EDT 2010


#12451: XMPP: default user directory configuration
------------------------------------+---------------------------------------
 Reporter:  SgtPepper               |        Owner:  deryni
     Type:  patch                   |       Status:  new   
Milestone:  Patches Needing Review  |    Component:  XMPP  
  Version:  2.7.2                   |   Resolution:        
 Keywords:                          |  
------------------------------------+---------------------------------------

Comment(by SgtPepper):

 Is there precedence somewhere for persistently remembering the last
 entered value of a text field (aside from statuses, which have their own
 file)?  I'm okay with that solution, but if I'm going to write such a
 patch, I'll have to know how such a value should be stored/retrieved (just
 as an accounts.xml setting as in my patch - just storing the last used
 value instead of an "Advanced" setting?).

 Forgive me if this is obvious.  I'm not overly familiar with Pidgin's code
 (or even GTK+, for that matter), so I could be missing something right in
 front of me.

 However, based on my current assumptions, please see the following patch.
 If a value different than the disco#info is provided, it is persisted.  If
 a value the same as disco#info is provided, the persisted value is
 cleared.  I only persist the value if it is different, so that the
 disco#info data can change and still be used.  I ''clear'' the value for
 the following use case:
  1. Default is provided by disco#info
    a. May or may be used to search for users
  2. User uses a different directory to search for a user
  3. User wants to use the server that happened to be provided by
 disco#info
    a. If I didn't clear the persisted value, the directory from 2. would
 continue to be persisted and used as default on subsequent searches
    b. Since it is cleared, the default value starts following disco#info
 again until the next non-matching server is entered.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/12451#comment:7>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list