GNOME Bugzilla – Bug 326103
allow to install a theme from a directory
Last modified: 2006-12-03 14:58:21 UTC
This bug has been described on http://bugzilla.ubuntu.com/show_bug.cgi?id=18152 "Using the theme preferences, you can drag and drop a theme archive onto the theme preferences window, and it will confirm the path and install it. Doing this same operation with a theme archive that has already been extracted confirms the path and then results in the error message "The file format is invalid". This seems extremely silly and a friend that just installed Linux just bumped into it as he was trying to install a theme. He went through about 6 of them before he immed me, and then I had to till him exactly what I was doing for him to figure it out. Seems like a usability problem to me. ... > Thanks for your bug. What version of Ubuntu do you use? What kind of theme do you install? I've just tried with an icon theme, it opens a dialog saying it has been installed correctly. ... OK I just tried it with a GTK theme, Metacity theme, and an icon theme. All were unsuccesfull when I first uncompressed them, dragged the directory to the Theme Preferences window, and confirmed the path. Attempting to install them this way resulted in the error "The file format is invalid". "
Created attachment 56966 [details] [review] Path #1 The patch allows theme directories to be installed via the theme manager.
Thanks for your work on that. Is that an indentation fix patch or a bug fix one? :) Could you split the patch in 2 parts, one for all the indentation fixes and one with the actual code change?
Out of the indentation changes noise the patch seems to be fine
Sorry, I meant to apologise for the indentation stuff. I want to fix some other issues after this one, so was tidying it up at the same time. I can create a patch ignoring white space if you want.
yes, please
Created attachment 57064 [details] [review] Patch #2 Diff with -w (Ignore all white space)
It should be noted that most of the new indentation is caused by the fact that large parts of the code are now contained in if() blocks (all the gzip/bzip testing and extracting is not needed for directories). Are there any more comments on the patch?
I've just committed a new implementation of this to CVS HEAD.