--- gnome-art-0.2.orig/debian/control +++ gnome-art-0.2/debian/control @@ -0,0 +1,27 @@ +Source: gnome-art +Section: gnome +Priority: optional +Maintainer: Mohammed Adnène Trojette +Uploaders: Alexis Sukrieh +Build-Depends: debhelper (>= 4.2.25), cdbs, quilt, patchutils +Build-Depends-Indep: docbook-to-man +Standards-Version: 3.7.3 +Homepage: http://www.miketech.net/gnome-art/ + +Package: gnome-art +Architecture: all +Depends: ruby, libgnome2-ruby, libglade2-ruby (>= 0.12.0) +Recommends: gnome-splashscreen-manager +Description: install GNOME themes from art.gnome.org + GNOME Art is a tool for downloading and installing GNOME themes + from http://art.gnome.org/ website. It provides a nice theme list + with options to preview, download and install them. + +Package: gnome-splashscreen-manager +Architecture: all +Depends: ruby (>= 1.8), libglade2-ruby (>= 0.12.0), libgconf2-ruby (>= 0.12.0) +Description: manage your GNOME splash screen images + GNOME Splashscreen Manager is a tool for managing your GNOME + splash screen images. It provides a nice image list with options + to add, remove images and set one of them as an active splash screen + image. --- gnome-art-0.2.orig/debian/gnome-art.install +++ gnome-art-0.2/debian/gnome-art.install @@ -0,0 +1,5 @@ +gnome-art/bin/gnome-art usr/bin +gnome-art/data/gnome-art usr/share +gnome-art/lib/gnome-art/ usr/lib/ruby/1.8 +gnome-art/lib/gnome_art.rb usr/lib/ruby/1.8 +debian/gnome-art.desktop usr/share/applications --- gnome-art-0.2.orig/debian/rules +++ gnome-art-0.2/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +DEB_INSTALL_MANPAGES_gnome-art := debian/gnome-art.1 +DEB_INSTALL_MANPAGES_gnome-splashscreen-manager := debian/gnome-splashscreen-manager.1 + +build/gnome-art:: + docbook-to-man debian/gnome-art.sgml > debian/gnome-art.1 + +build/gnome-splashscreen-manager:: + docbook-to-man debian/gnome-splashscreen-manager.sgml > debian/gnome-splashscreen-manager.1 + +binary-post-install/gnome-art:: + rm -f debian/gnome-art/usr/share/gnome-art/glade/*.gladep + rm -f debian/gnome-art/usr/share/doc/gnome-art/README + +binary-post-install/gnome-splashscreen-manager:: + rm -f debian/gnome-splashscreen-manager/usr/share/gnome-splashscreen-manager/glade/*.gladep + rm -f debian/gnome-splashscreen-manager/usr/share/doc/gnome-splashscreen-manager/README + +clean:: + rm -f debian/gnome-art.1 + rm -f debian/gnome-splashscreen-manager.1 --- gnome-art-0.2.orig/debian/gnome-splashscreen-manager.sgml +++ gnome-art-0.2/debian/gnome-splashscreen-manager.sgml @@ -0,0 +1,89 @@ +Dan"> + Korostelev"> + April 16, 2005"> + 1"> + dan@ats.energo.ru"> + + GNOME-SPLASHSCREEN-MANAGER"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2005 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + &dhsection; + + + &dhpackage; + + splash screen manager for GNOME + + + + &dhpackage; + + + + DESCRIPTION + + &dhpackage; is a tool for managing splash screen images for GNOME desktop envrionment. It can install, remove splash screen images and set one of them as an active splash screen image. + + + + SEE ALSO + + gnome-art (1). + + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + --- gnome-art-0.2.orig/debian/gnome-art.desktop +++ gnome-art-0.2/debian/gnome-art.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Art Manager +Comment=Install themes from art.gnome.org website +Exec=gnome-art +Icon=gnome-graphics +Terminal=false +Type=Application +StartupNotify=true +Categories=GNOME;Application;Settings; +OnlyShowIn=GNOME; --- gnome-art-0.2.orig/debian/changelog +++ gnome-art-0.2/debian/changelog @@ -0,0 +1,128 @@ +gnome-art (0.2-11) unstable; urgency=low + + * Really importing Ubuntu's patch (i.e. uncommenting lines in + debian/patches/series...) + + -- Mohammed Adnène Trojette Tue, 27 May 2008 20:28:02 +0200 + +gnome-art (0.2-10) unstable; urgency=low + + * gnome-art depends on libgnome2-ruby. + + -- Mohammed Adnène Trojette Tue, 20 May 2008 11:29:47 +0200 + +gnome-art (0.2-9) unstable; urgency=low + + * 23_add-user-agent.diff_480498.diff: add a User-Agent, thanks Emmanuel + Bouthenot for the help. (Closes: #480498) + * Depend on unversioned ruby. (Closes: #463485) + * Remove watch file, as Upstream is dead. (Closes: #449662) + * gnome-art recommends gnome-splashscreen but does not depend on it. + (Closes: #463562) + * Import patches from Ubuntu: + + 20_use-gnome-appearance-properties.diff: use + gnome-appearance-properties instead of gnome-theme-manager + + 21_fix-xml-output.patch: fix lost configuration options + + 22_more-infos-when-deleting-activated-splash.patch: warn the user + when trying to remove an active splash screen from the list + + Thanks Philipp Kern and Kjell Braden. + + -- Mohammed Adnène Trojette Mon, 12 May 2008 12:28:54 +0200 + +gnome-art (0.2-8) unstable; urgency=low + + * Don't Conflict with ruby >> 1.8. (Closes: #461834) + * debian/control: + + bump Standards-Version to 3.7.3. + + s/Gnome/GNOME/g. + + use a real Homepage header. + * Remove the Encoding key from .desktop files. + + -- Mohammed Adnène Trojette Tue, 22 Jan 2008 01:42:39 +0100 + +gnome-art (0.2-7) unstable; urgency=low + + * Add patch courtesy from Andy Matteson to fix a crash when downloading a + wallpaper with the Download Only button. Thanks Sébastien Bächer for + forwarding it from Ubuntu. (Closes: #434767) + + -- Mohammed Adnène Trojette Sun, 05 Aug 2007 23:31:43 +0200 + +gnome-art (0.2-6) unstable; urgency=low + + [ Mohammed Adnène Trojette ] + * Add Alexis Sukrieh to Uploaders. + + [Alexis Sukrieh] + * Internet detection (Closes: #316246): + + check at startup if http://art.gnome.org is reachable; + exit with an Error dialog if not. + + make sure whenever a download is needed that http://art.gnome.org + is reachable. + + -- Mohammed Adnène Trojette Fri, 13 Apr 2007 21:08:52 +0200 + +gnome-art (0.2-5) unstable; urgency=low + + * Move back to optional as ftp-master overrides. + + -- Mohammed Adnène Trojette Sat, 16 Sep 2006 13:27:34 +0200 + +gnome-art (0.2-4) unstable; urgency=low + + * Put Priority: extra to respect Policy Section 2.5. + + -- Mohammed Adnène Trojette Sat, 16 Sep 2006 04:20:23 +0200 + +gnome-art (0.2-3) unstable; urgency=low + + * Fix spelling mistake in gnome-splashscreen-manager's description. + Thanks Simon Waters. (Closes: #363610) + * Build-Depend on quilt. + * New patches: + - 01_fix_crash_314310.diff: + + fix crash of gnome-splashscreen-manager. (Closes: #314310) + - 02_add_tooltips_379545.diff: + + add tooltips to gnome-splashscreen-manager. (Closes: #379545) + + add tooltips to gnome-art. + + -- Mohammed Adnène Trojette Sat, 26 Aug 2006 15:10:37 +0200 + +gnome-art (0.2-2) unstable; urgency=low + + * New maintainer (Closes: #353396) + * Packaging updates: + + FSF address + + Standards-Version + + -- Mohammed Adnène Trojette Fri, 9 Jun 2006 11:55:09 +0200 + +gnome-art (0.2-1) unstable; urgency=low + + * New upstream release: + - Application theme installation + - Window border theme installation + - Thumbnail caching + - Threaded actions + * Invalid URI crash was fixed upstream, so remove the patch + and the "no thumbnail" image (now included upstream) + + -- Dan Korostelev Wed, 20 Apr 2005 04:59:43 +0400 + +gnome-art (0.1-2) unstable; urgency=low + + * Switched debian/* to CDBS + * Depend on ruby >= 1.8 and << 1.9, because we provide modules + only for ruby1.8, so we don't want users complaining about + the program doesn't work on their ruby 1.6 on Woody or custom + system (Closes: #305205) + * Added quick fix for crash when trying to get a thumbnail from + art.gnome.org and it's not available. (Hopefully closes: #305207) + + -- Dan Korostelev Tue, 19 Apr 2005 03:03:33 +0400 + +gnome-art (0.1-1) unstable; urgency=low + + * Initial Release. (Closes: #304941) + + -- Dan Korostelev Sat, 16 Apr 2005 19:42:02 +0400 --- gnome-art-0.2.orig/debian/compat +++ gnome-art-0.2/debian/compat @@ -0,0 +1 @@ +4 --- gnome-art-0.2.orig/debian/gnome-splashscreen-manager.install +++ gnome-art-0.2/debian/gnome-splashscreen-manager.install @@ -0,0 +1,5 @@ +gnome-splashscreen-manager/bin/gnome-splashscreen-manager usr/bin +gnome-splashscreen-manager/data/gnome-splashscreen-manager usr/share +gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ usr/lib/ruby/1.8 +gnome-splashscreen-manager/lib/gnome_splashscreen_manager.rb usr/lib/ruby/1.8 +debian/gnome-splashscreen-manager.desktop usr/share/applications --- gnome-art-0.2.orig/debian/copyright +++ gnome-art-0.2/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Dan Korostelev on +Sat, 16 Apr 2005 20:29:45 +0400. + +It was downloaded from http://www.miketech.net/gnome-art/ + +Copyright Holder: Michael Gebhart + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, + USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- gnome-art-0.2.orig/debian/gnome-splashscreen-manager.desktop +++ gnome-art-0.2/debian/gnome-splashscreen-manager.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Splash Screen +Comment=Select a splash screen image +Exec=gnome-splashscreen-manager +Icon=gnome-graphics +Terminal=false +Type=Application +StartupNotify=true +Categories=GNOME;Application;Settings; +OnlyShowIn=GNOME; --- gnome-art-0.2.orig/debian/gnome-art.sgml +++ gnome-art-0.2/debian/gnome-art.sgml @@ -0,0 +1,92 @@ +Dan"> + Korostelev"> + April 16, 2005"> + 1"> + dan@ats.energo.ru"> + + GNOME-ART"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2005 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + art.gnome.org theme installer + + + + &dhpackage; + + + + DESCRIPTION + + &dhpackage; is a tool for download and install GNOME themes from http://art.gnome.org/ website. It provides options for view, download and install themes for applications, windows, backgrounds and splash screens. + + + + SEE ALSO + + gnome-splashscreen-manager (1). + + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + --- gnome-art-0.2.orig/debian/patches/22_more-infos-when-deleting-activated-splash.diff +++ gnome-art-0.2/debian/patches/22_more-infos-when-deleting-activated-splash.diff @@ -0,0 +1,39 @@ +Index: gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ui/main_window.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ui/main_window.rb 2008-05-12 13:21:21.000000000 +0200 ++++ gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ui/main_window.rb 2008-05-12 13:21:21.000000000 +0200 +@@ -126,6 +126,26 @@ + + filename = iter[3] + ++ if ( filename == @active_splash_screen ) ++ dlg = Gtk::MessageDialog.new(@main_window, ++ Gtk::Dialog::DESTROY_WITH_PARENT | Gtk::Dialog::MODAL, ++ Gtk::MessageDialog::QUESTION, Gtk::MessageDialog::BUTTONS_YES_NO, ++ "The active splash screen is about to be removed.\n\nDisable splash screens?\nIf not, please activate a different splash screen first.") ++ dlg.run do |response| ++ case response ++ when Gtk::Dialog::RESPONSE_YES: ++ dlg.destroy ++ @checkbutton_splash_screen_active.set_active(false) ++ splash_screen_active_changed ++ else ++ dlg.destroy ++ return ++ end ++ end ++ end ++ ++ ++ + SplashScreens.delete_splash_screens_entry(Config::Gnome_splash_screens_file, filename) + + to_delete = [] +@@ -321,6 +341,7 @@ + + + def deactivate_splash_screen ++ SplashScreens.set_current_splash_screen("") + SplashScreens.set_current_splash_screen_active(false) + end + --- gnome-art-0.2.orig/debian/patches/01_fix_crash_314310.diff +++ gnome-art-0.2/debian/patches/01_fix_crash_314310.diff @@ -0,0 +1,13 @@ +Index: gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ui/main_window.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ui/main_window.rb 2006-08-25 23:07:01.000000000 +0200 ++++ gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ui/main_window.rb 2006-08-25 23:07:42.000000000 +0200 +@@ -422,7 +422,7 @@ + + #Add old splash screen + def add_old_splash_screen +- if (@old_splash_screen == "") ++ if (@old_splash_screen == "" || @old_splash_screen == nil) + return + end + --- gnome-art-0.2.orig/debian/patches/03_network_detection.diff +++ gnome-art-0.2/debian/patches/03_network_detection.diff @@ -0,0 +1,91 @@ +Index: gnome-art-0.2/gnome-art/lib/gnome-art/get_art.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-art/lib/gnome-art/get_art.rb 2007-04-13 19:33:26.000000000 +0200 ++++ gnome-art-0.2/gnome-art/lib/gnome-art/get_art.rb 2007-04-13 19:33:27.000000000 +0200 +@@ -265,6 +265,12 @@ + download(xml_filename, temp_filename) + end + ++ # make sure we managed to fetch data from Internet, ++ if (! FileTest.exist?(temp_filename)) ++ puts "Unable to retreive XML file from internet, not connected?" ++ return nil ++ end ++ + themes = File.new(temp_filename, "r+") + + if (themes == nil) +Index: gnome-art-0.2/gnome-art/lib/gnome-art/gnome_art.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-art/lib/gnome-art/gnome_art.rb 2007-04-13 19:33:26.000000000 +0200 ++++ gnome-art-0.2/gnome-art/lib/gnome-art/gnome_art.rb 2007-04-13 19:35:49.000000000 +0200 +@@ -128,6 +128,18 @@ + init_directories + + main_window = MainWindow.new(self) ++ # Check if we are connected, if not, refuse to start. ++ unless GnomeArt.isConnected ++ dialog = Gtk::MessageDialog.new(nil, ++ Gtk::Dialog::MODAL | Gtk::Dialog::DESTROY_WITH_PARENT, ++ Gtk::MessageDialog::ERROR, ++ Gtk::MessageDialog::BUTTONS_OK, ++ "Unable to reach http://art.gnome.org.\n"+ ++ "Make sure you are connected to Internet and try again.") ++ dialog.run ++ dialog.destroy ++ exit 1 ++ end + + Gtk.main + +@@ -135,6 +147,23 @@ + + end + ++ # method for pinging the outside world in order ++ # to know if we can assume that we have some network ++ # connection available ++ def self.isConnected ++ begin ++ url_to_ping = "http://art.gnome.org" ++ if open(url_to_ping, "rb") ++ return true ++ else ++ return false ++ end ++ # assume we got a SocketError if no connection up ++ rescue SocketError ++ return false ++ end ++ end ++ + end + + +Index: gnome-art-0.2/gnome-art/lib/gnome-art/ui/main_window.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-art/lib/gnome-art/ui/main_window.rb 2007-04-13 19:33:27.000000000 +0200 ++++ gnome-art-0.2/gnome-art/lib/gnome-art/ui/main_window.rb 2007-04-13 19:33:27.000000000 +0200 +@@ -450,6 +450,11 @@ + + def reload_backgrounds + ++ # we have to be able to reach Internet here ++ unless GnomeArt.isConnected ++ return nil ++ end ++ + Thread.new { + + show_download_dialog("Preparing download") +@@ -510,6 +515,10 @@ + + def reload_themes + ++ # we have to be able to reach Internet here ++ unless GnomeArt.isConnected ++ return nil ++ end + + Thread.new { + --- gnome-art-0.2.orig/debian/patches/02_add_tooltips_379545.diff +++ gnome-art-0.2/debian/patches/02_add_tooltips_379545.diff @@ -0,0 +1,46 @@ +Index: gnome-art-0.2/gnome-art/lib/gnome-art/ui/main_window.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-art/lib/gnome-art/ui/main_window.rb 2006-08-26 15:06:09.000000000 +0200 ++++ gnome-art-0.2/gnome-art/lib/gnome-art/ui/main_window.rb 2006-08-26 15:08:00.000000000 +0200 +@@ -612,6 +612,17 @@ + @button_download_only = @glade.get_widget("button_download_only") + @button_preview = @glade.get_widget("button_preview") + @menu_resolution = @glade.get_widget("menu_resolution") ++ ++ # Create the tooltips object ++ tooltips = Gtk::Tooltips.new ++ # Add tooltips to the buttons ++ tooltips.set_tip( @button_install, ++ "Add selected item", nil ) ++ tooltips.set_tip( @button_download_only, ++ "Download but do not install", nil ) ++ tooltips.set_tip( @button_preview, ++ "View splashscreen in real size", nil ) ++ + end + + def set_buttons +Index: gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ui/main_window.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ui/main_window.rb 2006-08-26 15:01:39.000000000 +0200 ++++ gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/ui/main_window.rb 2006-08-26 15:05:57.000000000 +0200 +@@ -366,7 +366,18 @@ + @button_activate = @glade.get_widget("button_activate") + @checkbutton_splash_screen_active = @glade.get_widget("checkbutton_splash_screen_active") + +- ++ # Create the tooltips object ++ tooltips = Gtk::Tooltips.new ++ # Add tooltips to the buttons ++ tooltips.set_tip( @button_install_new_splash_screen, ++ "Add splashscreen to the list", nil ) ++ tooltips.set_tip( @button_delete_splash_screen, ++ "Remove splashscreen from the list", nil ) ++ tooltips.set_tip( @button_preview, ++ "View splashscreen in real size", nil ) ++ tooltips.set_tip( @button_activate, ++ "Select splashscreen for future logins", nil ) ++ + end + + def set_buttons --- gnome-art-0.2.orig/debian/patches/series +++ gnome-art-0.2/debian/patches/series @@ -0,0 +1,8 @@ +01_fix_crash_314310.diff +02_add_tooltips_379545.diff +03_network_detection.diff +04_patch_gtk_save_dialog.diff +20_use-gnome-appearance-properties.diff +21_fix-xml-output.diff +22_more-infos-when-deleting-activated-splash.diff +23_add-user-agent.diff_480498.diff --- gnome-art-0.2.orig/debian/patches/21_fix-xml-output.diff +++ gnome-art-0.2/debian/patches/21_fix-xml-output.diff @@ -0,0 +1,35 @@ +Index: gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/gnome_splashscreen_manager.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/gnome_splashscreen_manager.rb 2008-05-12 12:24:39.000000000 +0200 ++++ gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/gnome_splashscreen_manager.rb 2008-05-12 12:24:53.000000000 +0200 +@@ -41,7 +41,7 @@ + puts "Create SplashScreen-File" + splash_screens_file = File.new(file, File::CREAT|File::TRUNC|File::RDWR, 0644) + +- new_splash_screens_file = "\n\n\n" ++ new_splash_screens_file = "\n\n" + + splash_screens_file.write(new_splash_screens_file) + +Index: gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/splash_screens.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/splash_screens.rb 2008-05-12 12:25:06.000000000 +0200 ++++ gnome-art-0.2/gnome-splashscreen-manager/lib/gnome-splashscreen-manager/splash_screens.rb 2008-05-12 12:25:25.000000000 +0200 +@@ -52,7 +52,7 @@ + license_element.text = license + + output = "" +- doc.write(output, 0) ++ doc.write(output) + + splash_screens_file.truncate(0) + splash_screens_file.rewind +@@ -158,7 +158,7 @@ + } + + output = "" +- doc.write(output, 0) ++ doc.write(output) + + splash_screens_file.truncate(0) + splash_screens_file.rewind --- gnome-art-0.2.orig/debian/patches/20_use-gnome-appearance-properties.diff +++ gnome-art-0.2/debian/patches/20_use-gnome-appearance-properties.diff @@ -0,0 +1,13 @@ +Index: gnome-art-0.2/gnome-art/lib/gnome-art/ui/main_window.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-art/lib/gnome-art/ui/main_window.rb 2008-05-12 12:22:15.000000000 +0200 ++++ gnome-art-0.2/gnome-art/lib/gnome-art/ui/main_window.rb 2008-05-12 12:22:29.000000000 +0200 +@@ -412,7 +412,7 @@ + + system(command) + +- system("gnome-theme-manager &") ++ system("gnome-appearance-properties &") + + end + } --- gnome-art-0.2.orig/debian/patches/04_patch_gtk_save_dialog.diff +++ gnome-art-0.2/debian/patches/04_patch_gtk_save_dialog.diff @@ -0,0 +1,75 @@ +Index: gnome-art-0.2/gnome-art/lib/gnome-art/ui/main_window.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-art/lib/gnome-art/ui/main_window.rb 2008-05-12 12:14:21.000000000 +0200 ++++ gnome-art-0.2/gnome-art/lib/gnome-art/ui/main_window.rb 2008-05-12 12:17:57.000000000 +0200 +@@ -24,10 +24,10 @@ + require 'rexml/document' + + module GnomeArt +- class MainWindow + +- ++ class MainWindow + ++ @@lastfilename = nil + #Signalhandlers begin + + def on_button_preview_clicked +@@ -76,6 +76,7 @@ + + def on_button_download_only_clicked + #Download the selected item ++ + download_only_art + end + +@@ -238,21 +239,18 @@ + location = iter[3] + + Thread.new { ++ file_save_as = Gtk::FileSelection.new("Download Background") ++ filename = GetArt.get_filename_by_location(location) + +- file_save_as = Gtk::FileChooserDialog.new("Download Background", +- @main_window, +- Gtk::FileChooser::ACTION_SAVE, +- nil, +- [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL], +- [Gtk::Stock::SAVE, Gtk::Dialog::RESPONSE_ACCEPT]) +- +- filename = GetArt.get_filename_by_location(location) ++ if (@@lastfilename != nil) ++ file_save_as.filename = @@lastfilename ++ end + +- file_save_as.set_current_name(filename) ++ file_save_as.set_filename(filename) + +- if (file_save_as.run == Gtk::Dialog::RESPONSE_ACCEPT) ++ file_save_as.ok_button.signal_connect("clicked") do + #Save the stuff +- ++ @@lastfilename= file_save_as.filename + temp_file = Config::Temp_dir + "/" + filename + + if (FileTest.exist?(temp_file)) +@@ -271,10 +269,17 @@ + + end + +- end ++ file_save_as.destroy ++ end ++ file_save_as.cancel_button.signal_connect("clicked") do ++ file_save_as.destroy ++ end ++ ++ ++ file_save_as.show_all + +- file_save_as.destroy + } ++ + end + + def method(handler, *other_args) --- gnome-art-0.2.orig/debian/patches/23_add-user-agent.diff_480498.diff +++ gnome-art-0.2/debian/patches/23_add-user-agent.diff_480498.diff @@ -0,0 +1,26 @@ +Index: gnome-art-0.2/gnome-art/lib/gnome-art/gnome_art.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-art/lib/gnome-art/gnome_art.rb 2008-05-12 13:25:07.000000000 +0200 ++++ gnome-art-0.2/gnome-art/lib/gnome-art/gnome_art.rb 2008-05-12 13:25:07.000000000 +0200 +@@ -153,7 +153,7 @@ + def self.isConnected + begin + url_to_ping = "http://art.gnome.org" +- if open(url_to_ping, "rb") ++ if open(url_to_ping, "rb", "User-Agent" => "GnomeArt (http://www.miketech.net/gnome-art/)") + return true + else + return false +Index: gnome-art-0.2/gnome-art/lib/gnome-art/get_art.rb +=================================================================== +--- gnome-art-0.2.orig/gnome-art/lib/gnome-art/get_art.rb 2008-05-12 13:25:19.000000000 +0200 ++++ gnome-art-0.2/gnome-art/lib/gnome-art/get_art.rb 2008-05-12 13:25:32.000000000 +0200 +@@ -147,7 +147,7 @@ + begin + io = File.open(target, "wb") + +- open(source, "rb") { |f| ++ open(source, "rb", "User-Agent" => "GnomeArt (http://www.miketech.net/gnome-art/)") { |f| + io.write f.read + } +