Mercurial > pidgin
comparison src/perl.c @ 799:72f8ac951c11
[gaim-migrate @ 809]
list perl scripts
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 30 Aug 2000 18:54:02 +0000 |
parents | 9dc39872e1f9 |
children | 022048cde898 |
comparison
equal
deleted
inserted
replaced
798:9dc39872e1f9 | 799:72f8ac951c11 |
---|---|
586 perl_init(); | 586 perl_init(); |
587 } | 587 } |
588 | 588 |
589 extern void list_perl_scripts(GtkWidget *w, gpointer d) | 589 extern void list_perl_scripts(GtkWidget *w, gpointer d) |
590 { | 590 { |
591 do_error_dialog("Implement me.", "FIXME"); | 591 GList *s = perl_list; |
592 } | 592 struct perlscript *p; |
593 char buf[BUF_LONG * 4]; | |
594 int at = 0; | |
595 | |
596 at += g_snprintf(buf + at, sizeof(buf) - at, "Loaded scripts:\n"); | |
597 while (s) { | |
598 p = (struct perlscript *)s->data; | |
599 at += g_snprintf(buf + at, sizeof(buf) - at, "%s\n", p->name); | |
600 s = s->next; | |
601 } | |
602 | |
603 do_error_dialog(buf, _("Perl Scripts")); | |
604 } | |
605 | |
593 #endif /* USE_PERL */ | 606 #endif /* USE_PERL */ |