Mercurial > pidgin
diff plugins/mailchk.c @ 4655:fac4c73dd5ad
[gaim-migrate @ 4966]
cleanups for some plugins that aren't compiled by default
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 06 Mar 2003 17:27:17 +0000 |
parents | c7569367ed87 |
children | fefad67de2c7 |
line wrap: on
line diff
--- a/plugins/mailchk.c Thu Mar 06 03:09:20 2003 +0000 +++ b/plugins/mailchk.c Thu Mar 06 17:27:17 2003 +0000 @@ -25,11 +25,9 @@ struct stat s; gint ret = 0; - filename = g_getenv("MAIL"); + filename = g_strdup(g_getenv("MAIL")); if (!filename) filename = g_strconcat("/var/spool/mail/", g_get_user_name(), NULL); - else - filename = g_strdup(filename); if (stat(filename, &s) < 0) { g_free(filename); @@ -64,7 +62,7 @@ if (!mail) { /* guess we better build it then :P */ - GList *tmp = gtk_container_children(GTK_CONTAINER(blist)); + GList *tmp = gtk_container_get_children(GTK_CONTAINER(blist)); GtkWidget *vbox2 = (GtkWidget *)tmp->data; mail = gtk_label_new("No mail messages.");