pidgin/gtkutils.c

changeset 41924
7646d24a31be
parent 41797
3bc9948e9f3c
child 41947
7b3312d0760c
equal deleted inserted replaced
41923:2124729f5026 41924:7646d24a31be
137 } 137 }
138 } while (gtk_tree_model_iter_next(model, &iter)); 138 } while (gtk_tree_model_iter_next(model, &iter));
139 } 139 }
140 } 140 }
141 141
142 static void 142 void
143 show_retrieveing_info(PurpleConnection *conn, const char *name) 143 pidgin_retrieve_user_info(PurpleConnection *conn, const char *name) {
144 { 144 PurpleNotifyUserInfo *info = NULL;
145 PurpleNotifyUserInfo *info = purple_notify_user_info_new(); 145 PurpleProtocol *protocol = NULL;
146 purple_notify_user_info_add_pair_plaintext(info, _("Information"), _("Retrieving...")); 146
147 protocol = purple_connection_get_protocol(conn);
148 if(!PURPLE_IS_PROTOCOL_SERVER(protocol)) {
149 return;
150 }
151
152 purple_protocol_server_get_info(PURPLE_PROTOCOL_SERVER(protocol), conn,
153 name);
154
155 info = purple_notify_user_info_new();
156 purple_notify_user_info_add_pair_plaintext(info, _("Information"),
157 _("Retrieving..."));
147 purple_notify_userinfo(conn, name, info, NULL, NULL); 158 purple_notify_userinfo(conn, name, info, NULL, NULL);
148 purple_notify_user_info_destroy(info); 159 purple_notify_user_info_destroy(info);
149 }
150
151 void pidgin_retrieve_user_info(PurpleConnection *conn, const char *name)
152 {
153 show_retrieveing_info(conn, name);
154 purple_serv_get_info(conn, name);
155 } 160 }
156 161
157 void pidgin_retrieve_user_info_in_chat(PurpleConnection *conn, const char *name, int chat) 162 void pidgin_retrieve_user_info_in_chat(PurpleConnection *conn, const char *name, int chat)
158 { 163 {
159 char *who = NULL; 164 char *who = NULL;

mercurial