libpurple/protocols/gg/gg.c

branch
soc.2012.gg
changeset 33347
cc3f8295618a
parent 33346
3b4cbb0e10d6
child 33363
52cc04429e2c
child 34106
1b0c94670bcc
--- a/libpurple/protocols/gg/gg.c	Mon Aug 20 16:07:55 2012 +0200
+++ b/libpurple/protocols/gg/gg.c	Mon Aug 20 20:28:27 2012 +0200
@@ -1301,6 +1301,11 @@
 	ggp_pubdir_search((PurpleConnection *)action->context, NULL);
 }
 
+static void ggp_action_set_info(PurplePluginAction *action)
+{
+	ggp_pubdir_set_info((PurpleConnection *)action->context);
+}
+
 static GList *ggp_actions(PurplePlugin *plugin, gpointer context)
 {
 	GList *m = NULL;
@@ -1310,12 +1315,18 @@
 		ggp_action_chpass);
 	m = g_list_append(m, act);
 
+	act = purple_plugin_action_new(_("Show status only for buddies"),
+		ggp_action_status_broadcasting);
+	m = g_list_append(m, act);
+
+	m = g_list_append(m, NULL);
+
 	act = purple_plugin_action_new(_("Find buddies..."),
 		ggp_action_search);
 	m = g_list_append(m, act);
 
-	act = purple_plugin_action_new(_("Show status only for buddies"),
-		ggp_action_status_broadcasting);
+	act = purple_plugin_action_new(_("Set User Info"),
+		ggp_action_set_info);
 	m = g_list_append(m, act);
 
 	m = g_list_append(m, NULL);

mercurial