pidgin: a6dc4f4b: Update this to not use GIO, so it should...
Adam Petaccia
mighmos at mighmos.org
Sun Jun 28 16:59:21 EDT 2009
On Sun, 2009-06-28 at 15:15 -0400, darkrain42 at pidgin.im wrote:
> -----------------------------------------------------------------
> Revision: a6dc4f4b52aaf81e56bd694395a4f45f4472a0dc
> Ancestor: 5f12291894f0f2afe97f1f0df2954a87b62b33d1
> Author: darkrain42 at pidgin.im
> Date: 2009-06-28T19:14:03
> Branch: im.pidgin.pidgin
> URL: http://d.pidgin.im/viewmtn/revision/info/a6dc4f4b52aaf81e56bd694395a4f45f4472a0dc
>
> Modified files:
> pidgin/gtkprefs.c
>
> ChangeLog:
>
> Update this to not use GIO, so it should build for poizon. Refs #8085.
>
> My gratitude to grim for mentioning he had a copy function in gf2 that
> I could borrow.
>
> ============================================================
> --- pidgin/gtkprefs.c 40f2e2dd94e4dae1465b2896c82fdfcba72221eb
> +++ pidgin/gtkprefs.c db52276689b0630d664f160b85d60b47642378d0
> @@ -641,6 +641,28 @@ prefs_theme_find_theme(const gchar *path
> return theme;
> }
>
> +/* Eww. Seriously ewww. But thanks, grim! This is taken from guifications2 */
> +static gboolean
> +purple_theme_file_copy(const gchar *source, const gchar *destination)
> +{
> + FILE *src, *dest;
> + gint chr = EOF;
> +
> + if(!(src = g_fopen(source, "rb")))
> + return FALSE;
> + if(!(dest = g_fopen(destination, "wb")))
> + return FALSE;
What happens if src can be opened, but dest can't?
> +
> + while((chr = fgetc(src)) != EOF) {
> + fputc(chr, dest);
> + }
> +
> + fclose(dest);
> + fclose(src);
> +
> + return TRUE;
> +}
> +
> _______________________________________________
> Commits mailing list
> Commits at pidgin.im
> http://pidgin.im/cgi-bin/mailman/listinfo/commits
More information about the Devel
mailing list