Mercurial > pidgin.yaz
diff pidgin/plugins/themeedit-icon.c @ 31338:3c1563a54785
Build the "Pidgin Theme Editor" plugin on Windows too.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 04 Nov 2010 18:23:41 +0000 |
parents | 390c3a6a44c6 |
children |
line wrap: on
line diff
--- a/pidgin/plugins/themeedit-icon.c Tue Nov 02 20:55:06 2010 +0000 +++ b/pidgin/plugins/themeedit-icon.c Thu Nov 04 18:23:41 2010 +0000 @@ -106,9 +106,16 @@ create_icon_theme(GtkWidget *window) { int s, i, j; - char *dirname = "/tmp"; /* FIXME */ - PidginStatusIconTheme *theme = g_object_new(PIDGIN_TYPE_STATUS_ICON_THEME, "type", "status-icon", - "author", getlogin(), + const char *dirname = g_get_tmp_dir(); + PidginStatusIconTheme *theme; + const char *author; +#ifndef _WIN32 + author = getlogin(); +#else + author = "user"; +#endif + theme = g_object_new(PIDGIN_TYPE_STATUS_ICON_THEME, "type", "status-icon", + "author", author, "directory", dirname, NULL);