From: <the...@us...> - 2006-12-20 09:35:28
|
Revision: 18030 http://svn.sourceforge.net/gaim/?rev=18030&view=rev Author: thekingant Date: 2006-12-20 01:35:24 -0800 (Wed, 20 Dec 2006) Log Message: ----------- Fix a rather large oversight on my part: I wasn't allowing people to set icons at all for protocols that didn't have a max icon file size. Modified Paths: -------------- trunk/gtk/gtkutils.c Modified: trunk/gtk/gtkutils.c =================================================================== --- trunk/gtk/gtkutils.c 2006-12-20 09:31:11 UTC (rev 18029) +++ trunk/gtk/gtkutils.c 2006-12-20 09:35:24 UTC (rev 18030) @@ -2646,7 +2646,8 @@ * the prpl supported jpeg, and then we could convert to that * and use a lower quality setting. */ - if (st.st_size > prpl_info->icon_spec.max_filesize) + if ((prpl_info->icon_spec.max_filesize != 0) && + (st.st_size > prpl_info->icon_spec.max_filesize)) { gchar *tmp; tmp = g_strdup_printf(_("The file '%s' is too large for %s. Please try a smaller image.\n"), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |