Mercurial > pidgin
comparison plugins/notify.c @ 3551:cd938f18f3f8
[gaim-migrate @ 3626]
In the interest of continued progress, I pulled what's usable out of my
development tree and am committing it.
Here, we have gotten rid of the plugins dialog and perl menu under Tools and
put them both in preferences. Perl scripts now work like plugins--you have
to load them explicitly (it will probe $prefix/lib/gaim and $HOME/.gaim for
them) and you can unload them (although right now, this is entirely unreliable)
Oh, and I broke all your perl scripts. Sorry about that. Don't try fixing
them yet, though--I'm gonna make unloading single scripts more reliable
tommorow.
I should also finish Phase Two tommorow as well.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Thu, 26 Sep 2002 07:37:52 +0000 |
| parents | 7e1c6c16dd41 |
| children | 333551497ff8 |
comparison
equal
deleted
inserted
replaced
| 3550:e9b2003ee562 | 3551:cd938f18f3f8 |
|---|---|
| 259 gchar buf[1000]; | 259 gchar buf[1000]; |
| 260 FILE *fp; | 260 FILE *fp; |
| 261 | 261 |
| 262 snprintf(buf, 1000, "%s/.gaim/.notify", getenv("HOME")); | 262 snprintf(buf, 1000, "%s/.gaim/.notify", getenv("HOME")); |
| 263 if (!(fp = fopen(buf, "w"))) { | 263 if (!(fp = fopen(buf, "w"))) { |
| 264 do_error_dialog(_("Unable to write to config file"), _("Notify plugin"), GAIM_ERROR); | 264 do_eror_dialog(_("Unable to write to config file"), _("Notify plugin"), GAIM_ERROR); |
| 265 return; | 265 return; |
| 266 } | 266 } |
| 267 | 267 |
| 268 fprintf(fp, "%d=CHOICE\n", choice); | 268 fprintf(fp, "%d=CHOICE\n", choice); |
| 269 fprintf(fp, "%d=METHOD\n", method); | 269 fprintf(fp, "%d=METHOD\n", method); |
| 403 /* } */ | 403 /* } */ |
| 404 c = c->next; | 404 c = c->next; |
| 405 } | 405 } |
| 406 } | 406 } |
| 407 | 407 |
| 408 struct gaim_plugin_description desc; | |
| 409 struct gaim_plugin_description *gaim_plugin_desc() { | |
| 410 desc.api_version = PLUGIN_API_VERSION; | |
| 411 desc.name = g_strdup("Message Notification"); | |
| 412 desc.version = g_strdup(VERSION); | |
| 413 desc.description = g_strdup("Provides a variety of ways of notifying you of unread messages."); | |
| 414 desc.authors = g_strdup("Etan Reisner <deryni@eden.rutgers.edu>"); | |
| 415 desc.url = g_strdup(WEBSITE); | |
| 416 return &desc; | |
| 417 } | |
| 418 | |
| 408 char *name() { | 419 char *name() { |
| 409 return "Visual Notification"; | 420 return "Visual Notification"; |
| 410 } | 421 } |
| 411 | 422 |
| 412 char *description() { | 423 char *description() { |
