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:
parent
3207820bf8
commit
e6ac3bd2d2
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 ());
|
||||
|
|
Loading…
Add table
Reference in a new issue