src/protocols/msn/msn.c

changeset 6035
b245be9cbe3b
parent 6026
b11d9f2fd725
child 6059
9934c862ca14
equal deleted inserted replaced
6034:148d8b0fe741 6035:b245be9cbe3b
164 msn_show_set_friendly_name(GaimConnection *gc) 164 msn_show_set_friendly_name(GaimConnection *gc)
165 { 165 {
166 gaim_request_input(gc, NULL, _("Set your friendly name."), 166 gaim_request_input(gc, NULL, _("Set your friendly name."),
167 _("This is the name that other MSN buddies will " 167 _("This is the name that other MSN buddies will "
168 "see you as."), 168 "see you as."),
169 gaim_connection_get_display_name(gc), FALSE, 169 gaim_connection_get_display_name(gc), FALSE, FALSE,
170 _("OK"), G_CALLBACK(msn_act_id), 170 _("OK"), G_CALLBACK(msn_act_id),
171 _("Cancel"), NULL, gc); 171 _("Cancel"), NULL, gc);
172 } 172 }
173 173
174 static void 174 static void
175 msn_show_set_home_phone(GaimConnection *gc) 175 msn_show_set_home_phone(GaimConnection *gc)
176 { 176 {
177 MsnSession *session = gc->proto_data; 177 MsnSession *session = gc->proto_data;
178 178
179 gaim_request_input(gc, NULL, _("Set your home phone number."), NULL, 179 gaim_request_input(gc, NULL, _("Set your home phone number."), NULL,
180 msn_user_get_home_phone(session->user), FALSE, 180 msn_user_get_home_phone(session->user), FALSE, FALSE,
181 _("OK"), G_CALLBACK(msn_set_home_phone_cb), 181 _("OK"), G_CALLBACK(msn_set_home_phone_cb),
182 _("Cancel"), NULL, gc); 182 _("Cancel"), NULL, gc);
183 } 183 }
184 184
185 static void 185 static void
186 msn_show_set_work_phone(GaimConnection *gc) 186 msn_show_set_work_phone(GaimConnection *gc)
187 { 187 {
188 MsnSession *session = gc->proto_data; 188 MsnSession *session = gc->proto_data;
189 189
190 gaim_request_input(gc, NULL, _("Set your work phone number."), NULL, 190 gaim_request_input(gc, NULL, _("Set your work phone number."), NULL,
191 msn_user_get_work_phone(session->user), FALSE, 191 msn_user_get_work_phone(session->user), FALSE, FALSE,
192 _("OK"), G_CALLBACK(msn_set_work_phone_cb), 192 _("OK"), G_CALLBACK(msn_set_work_phone_cb),
193 _("Cancel"), NULL, gc); 193 _("Cancel"), NULL, gc);
194 } 194 }
195 195
196 static void 196 static void
197 msn_show_set_mobile_phone(GaimConnection *gc) 197 msn_show_set_mobile_phone(GaimConnection *gc)
198 { 198 {
199 MsnSession *session = gc->proto_data; 199 MsnSession *session = gc->proto_data;
200 200
201 gaim_request_input(gc, NULL, _("Set your mobile phone number."), NULL, 201 gaim_request_input(gc, NULL, _("Set your mobile phone number."), NULL,
202 msn_user_get_mobile_phone(session->user), FALSE, 202 msn_user_get_mobile_phone(session->user), FALSE, FALSE,
203 _("OK"), G_CALLBACK(msn_set_mobile_phone_cb), 203 _("OK"), G_CALLBACK(msn_set_mobile_phone_cb),
204 _("Cancel"), NULL, gc); 204 _("Cancel"), NULL, gc);
205 } 205 }
206 206
207 static void 207 static void
229 data = g_new0(MsnMobileData, 1); 229 data = g_new0(MsnMobileData, 1);
230 data->gc = gc; 230 data->gc = gc;
231 data->passport = passport; 231 data->passport = passport;
232 232
233 gaim_request_input(gc, NULL, _("Send a mobile message."), NULL, 233 gaim_request_input(gc, NULL, _("Send a mobile message."), NULL,
234 NULL, TRUE, 234 NULL, TRUE, FALSE,
235 _("Page"), G_CALLBACK(send_to_mobile_cb), 235 _("Page"), G_CALLBACK(send_to_mobile_cb),
236 _("Close"), G_CALLBACK(close_mobile_page_cb), 236 _("Close"), G_CALLBACK(close_mobile_page_cb),
237 data); 237 data);
238 } 238 }
239 239

mercurial