Patch by: Alberto Ruiz <aruiz@synaptia.net>

2007-01-08  Thomas Wood  <thos@gnome.org>

	Patch by: Alberto Ruiz <aruiz@synaptia.net>

	* gnome-theme-installer.c: (gnome_theme_install_from_uri): Accept .gtp
	as a file extension

svn path=/trunk/; revision=7111
This commit is contained in:
Thomas Wood 2007-01-08 22:31:06 +00:00 committed by Thomas Wood
parent 3207820bf8
commit e6ac3bd2d2
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2007-01-08 Thomas Wood <thos@gnome.org>
Patch by: Alberto Ruiz <aruiz@synaptia.net>
* gnome-theme-installer.c: (gnome_theme_install_from_uri): Accept .gtp
as a file extension
2007-01-08 Jan Arne Petersen <jap@gnome.org>
* Makefile.am: Updated CLEANFILES

View file

@ -579,7 +579,7 @@ gnome_theme_install_from_uri (gchar * theme_filename, GtkWindow *parent)
GtkWidget *dialog;
int len = strlen (base);
if (base && len > 7 && ( (!strcmp (base + len - 7, ".tar.gz")) || (!strcmp (base + len - 4, ".tgz")) ))
if (base && len > 7 && ( (!strcmp (base + len - 7, ".tar.gz")) || (!strcmp (base + len - 4, ".tgz")) || (!strcmp (base + len - 4, ".gtp"))))
file_tmp = g_strdup_printf("gnome-theme-%d.tar.gz", rand ());
else if (base && len > 8 && !strcmp (base + len - 8, ".tar.bz2"))
file_tmp = g_strdup_printf("gnome-theme-%d.tar.bz2", rand ());