- Timestamp:
- 2010-03-12T01:05:21Z (15 years ago)
- Branches:
- master
- Children:
- 7c5affca
- Parents:
- 56244c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/purple.c
r56244c0 r4dc6b8d 68 68 char *def = NULL; 69 69 set_eval eval = NULL; 70 void *eval_data = NULL; 71 GList *io = NULL; 72 GSList *opts = NULL; 70 73 71 74 name = purple_account_option_get_setting( o ); … … 90 93 break; 91 94 95 case PURPLE_PREF_STRING_LIST: 96 def = g_strdup( purple_account_option_get_default_list_value( o ) ); 97 for( io = purple_account_option_get_list( o ); io; io = io->next ) 98 { 99 PurpleKeyValuePair *kv = io->data; 100 opts = g_slist_append( opts, kv->key ); 101 } 102 eval = set_eval_list; 103 eval_data = opts; 104 break; 105 92 106 default: 93 fprintf( stderr, "Setting with unknown type: %s (%d)\n", name, purple_account_option_get_type( o ) ); 107 irc_usermsg( acc->irc, "Setting with unknown type: %s (%d) Expect stuff to break..\n", 108 name, purple_account_option_get_type( o ) ); 94 109 name = NULL; 95 110 } … … 99 114 s = set_add( &acc->set, name, def, eval, acc ); 100 115 s->flags |= ACC_SET_OFFLINE_ONLY; 116 s->eval_data = eval_data; 101 117 g_free( def ); 102 118 } … … 150 166 { 151 167 case PURPLE_PREF_STRING: 168 case PURPLE_PREF_STRING_LIST: 152 169 purple_account_set_string( pa, name, set_getstr( &acc->set, name ) ); 153 170 break;
Note: See TracChangeset
for help on using the changeset viewer.