Mercurial > pidgin.yaz
comparison src/gtkpounce.c @ 5563:9eb5b13fd412
[gaim-migrate @ 5965]
Just a taste of what's coming.
Standard "This won't compile" thing. Plugin authors, you're going to hate
me, but that's okay, because I have friends too!
It's really late. My brain resembles that of fish swimming in jello pudding
with neon lights flying around chanting musicals. I'm not on drugs. I'm
just that tired.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 30 May 2003 09:38:29 +0000 |
parents | 2c4c975620f0 |
children | 86456ec3ca25 |
comparison
equal
deleted
inserted
replaced
5562:3c8d34574601 | 5563:9eb5b13fd412 |
---|---|
31 | 31 |
32 struct gaim_gtkpounce_dialog | 32 struct gaim_gtkpounce_dialog |
33 { | 33 { |
34 /* Pounce data */ | 34 /* Pounce data */ |
35 struct gaim_pounce *pounce; | 35 struct gaim_pounce *pounce; |
36 struct gaim_account *account; | 36 GaimAccount *account; |
37 | 37 |
38 /* The window */ | 38 /* The window */ |
39 GtkWidget *window; | 39 GtkWidget *window; |
40 | 40 |
41 /* Pounce Who */ | 41 /* Pounce Who */ |
274 } | 274 } |
275 | 275 |
276 static GtkWidget * | 276 static GtkWidget * |
277 pounce_user_menu(struct gaim_gtkpounce_dialog *dialog) | 277 pounce_user_menu(struct gaim_gtkpounce_dialog *dialog) |
278 { | 278 { |
279 struct gaim_account *account; | 279 GaimAccount *account; |
280 GaimPlugin *prpl; | 280 GaimPlugin *prpl; |
281 GtkWidget *opt_menu; | 281 GtkWidget *opt_menu; |
282 GtkWidget *menu; | 282 GtkWidget *menu; |
283 GtkWidget *item; | 283 GtkWidget *item; |
284 GSList *l; | 284 GSList *l; |
287 | 287 |
288 opt_menu = gtk_option_menu_new(); | 288 opt_menu = gtk_option_menu_new(); |
289 menu = gtk_menu_new(); | 289 menu = gtk_menu_new(); |
290 | 290 |
291 for (l = gaim_accounts, count = 0; l != NULL; l = l->next, count++) { | 291 for (l = gaim_accounts, count = 0; l != NULL; l = l->next, count++) { |
292 account = (struct gaim_account *)l->data; | 292 account = (GaimAccount *)l->data; |
293 | 293 |
294 prpl = gaim_find_prpl(account->protocol); | 294 prpl = gaim_find_prpl(account->protocol); |
295 | 295 |
296 g_snprintf(buf, sizeof(buf), "%s (%s)", account->username, | 296 g_snprintf(buf, sizeof(buf), "%s (%s)", account->username, |
297 (prpl && prpl->info->name) | 297 (prpl && prpl->info->name) |
320 | 320 |
321 static void | 321 static void |
322 pounce_cb(struct gaim_pounce *pounce, GaimPounceEvent events, void *data) | 322 pounce_cb(struct gaim_pounce *pounce, GaimPounceEvent events, void *data) |
323 { | 323 { |
324 struct gaim_conversation *conv; | 324 struct gaim_conversation *conv; |
325 struct gaim_account *account; | 325 GaimAccount *account; |
326 struct gaim_gtkpounce_data *pounce_data; | 326 struct gaim_gtkpounce_data *pounce_data; |
327 const char *pouncee; | 327 const char *pouncee; |
328 | 328 |
329 pounce_data = (struct gaim_gtkpounce_data *)data; | 329 pounce_data = (struct gaim_gtkpounce_data *)data; |
330 pouncee = gaim_pounce_get_pouncee(pounce); | 330 pouncee = gaim_pounce_get_pouncee(pounce); |
427 | 427 |
428 save_prefs(); | 428 save_prefs(); |
429 } | 429 } |
430 | 430 |
431 struct gaim_pounce * | 431 struct gaim_pounce * |
432 gaim_gtkpounce_new(struct gaim_account *pouncer, const char *pouncee, | 432 gaim_gtkpounce_new(GaimAccount *pouncer, const char *pouncee, |
433 GaimPounceEvent events, GaimGtkPounceAction actions, | 433 GaimPounceEvent events, GaimGtkPounceAction actions, |
434 const char *message, const char *command, | 434 const char *message, const char *command, |
435 const char *sound, gboolean save) | 435 const char *sound, gboolean save) |
436 { | 436 { |
437 struct gaim_gtkpounce_data *data; | 437 struct gaim_gtkpounce_data *data; |