|
From: SourceForge.net <no...@so...> - 2005-03-14 22:27:29
|
Patches item #1163319, was opened at 2005-03-14 16:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300235&aid=1163319&group_id=235 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Don Seiler (rizzo) Assigned to: Nobody/Anonymous (nobody) Summary: UI for gaim account option lists Initial Comment: gaim account option lists currently have no UI. I've implemented one here. I've also changed the account option list API to take a GList of GaimKeyValuePair structs (also included in this patch) rather than a GList of key-then-value-then-key-then-value-etc. strings. Patch includes the implementation of the UI in add_protocol_options(), and the call back function in ok_account_prefs_cb(). The destroyer that had already been implemented should still apply in this case given static strings. This makes use of the GtkComboBox, which I'm told will be available in HEAD, and this was diffed from HEAD. Here is an example use from the PRPL init_plugin(): GaimKeyValuePair *kvp; GList *server_list = NULL; kvp = g_new(GaimKeyValuePair, 1); kvp->key = _("Asia"); kvp->value = "asia.battle.net"; server_list = g_list_append (server_list, kvp); kvp = g_new(GaimKeyValuePair, 1); kvp->key = _("Europe"); kvp->value = "europe.battle.net"; server_list = g_list_append (server_list, kvp); kvp = g_new(GaimKeyValuePair, 1); kvp->key = _("US - East"); kvp->value = "useast.battle.net"; server_list = g_list_append (server_list, kvp); option = gaim_account_option_list_new(_("Server List"), "server_list", server_list); prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300235&aid=1163319&group_id=235 |