Mercurial > pidgin
comparison src/prpl.c @ 2662:b0c5770156e1
[gaim-migrate @ 2675]
everything changed!
not really. actually to be quite honest nothing changed.
it's really bad that all of these files use prpl references. most of them shouldn't.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 02 Nov 2001 01:41:37 +0000 |
parents | f00549786a9c |
children | 757688c301b5 |
comparison
equal
deleted
inserted
replaced
2661:5e9a033f04fa | 2662:b0c5770156e1 |
---|---|
90 g = (struct gaim_connection *)c->data; | 90 g = (struct gaim_connection *)c->data; |
91 if (g->prpl == p) { | 91 if (g->prpl == p) { |
92 char buf[256]; | 92 char buf[256]; |
93 g_snprintf(buf, sizeof buf, _("%s was using %s, which got removed." | 93 g_snprintf(buf, sizeof buf, _("%s was using %s, which got removed." |
94 " %s is now offline."), g->username, | 94 " %s is now offline."), g->username, |
95 (*p->name)(), g->username); | 95 p->name(), g->username); |
96 do_error_dialog(buf, _("Disconnect")); | 96 do_error_dialog(buf, _("Disconnect")); |
97 signoff(g); | 97 signoff(g); |
98 c = connections; | 98 c = connections; |
99 } else | 99 } else |
100 c = c->next; | 100 c = c->next; |
233 } | 233 } |
234 | 234 |
235 static void proto_act(GtkObject *obj, struct gaim_connection *gc) | 235 static void proto_act(GtkObject *obj, struct gaim_connection *gc) |
236 { | 236 { |
237 char *act = gtk_object_get_user_data(obj); | 237 char *act = gtk_object_get_user_data(obj); |
238 (*gc->prpl->do_action)(gc, act); | 238 gc->prpl->do_action(gc, act); |
239 } | 239 } |
240 | 240 |
241 void do_proto_menu() | 241 void do_proto_menu() |
242 { | 242 { |
243 GtkWidget *menuitem; | 243 GtkWidget *menuitem; |
280 if (gc->prpl->actions && gc->prpl->do_action) | 280 if (gc->prpl->actions && gc->prpl->do_action) |
281 break; | 281 break; |
282 c = g_slist_next(c); | 282 c = g_slist_next(c); |
283 } | 283 } |
284 | 284 |
285 tmp = act = (*gc->prpl->actions)(); | 285 tmp = act = gc->prpl->actions(); |
286 | 286 |
287 while (act) { | 287 while (act) { |
288 if (act->data == NULL) { | 288 if (act->data == NULL) { |
289 gaim_separator(protomenu); | 289 gaim_separator(protomenu); |
290 act = g_list_next(act); | 290 act = g_list_next(act); |
309 if (!gc->prpl->actions || !gc->prpl->do_action) { | 309 if (!gc->prpl->actions || !gc->prpl->do_action) { |
310 c = g_slist_next(c); | 310 c = g_slist_next(c); |
311 continue; | 311 continue; |
312 } | 312 } |
313 | 313 |
314 g_snprintf(buf, sizeof(buf), "%s (%s)", gc->username, (*gc->prpl->name)()); | 314 g_snprintf(buf, sizeof(buf), "%s (%s)", gc->username, gc->prpl->name()); |
315 menuitem = gtk_menu_item_new_with_label(buf); | 315 menuitem = gtk_menu_item_new_with_label(buf); |
316 gtk_menu_append(GTK_MENU(protomenu), menuitem); | 316 gtk_menu_append(GTK_MENU(protomenu), menuitem); |
317 gtk_widget_show(menuitem); | 317 gtk_widget_show(menuitem); |
318 | 318 |
319 submenu = gtk_menu_new(); | 319 submenu = gtk_menu_new(); |
320 gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); | 320 gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); |
321 gtk_widget_show(submenu); | 321 gtk_widget_show(submenu); |
322 | 322 |
323 tmp = act = (*gc->prpl->actions)(); | 323 tmp = act = gc->prpl->actions(); |
324 | 324 |
325 while (act) { | 325 while (act) { |
326 if (act->data == NULL) { | 326 if (act->data == NULL) { |
327 gaim_separator(submenu); | 327 gaim_separator(submenu); |
328 act = g_list_next(act); | 328 act = g_list_next(act); |