debian/0000755000000000000000000000000012172216417007171 5ustar debian/source/0000755000000000000000000000000012170237527010474 5ustar debian/source/format0000644000000000000000000000001412170237527011702 0ustar 3.0 (quilt) debian/control0000644000000000000000000000126512170302764010577 0ustar Source: gtk-theme-switch Section: x11 Priority: optional Maintainer: Marius Gavrilescu Build-Depends: debhelper (>= 9), libgtk2.0-dev Standards-Version: 3.9.4 Vcs-Browser: http://git.ieval.ro/?p=gtk-theme-switch.git;a=summary Vcs-Git: http://git.ieval.ro/git/gtk-theme-switch.git Homepage: http://gna.org/projects/gtk-theme-switch/ Package: gtk-theme-switch Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: GTK+ theme switching utility Utilities to easily switch GTK+ themes that can be run from the console, and has an optional GUI dock and theme preview. It can install themes downloaded from gtk.themes.org as well straight from the tarball. debian/compat0000644000000000000000000000000212170240410010353 0ustar 9 debian/gtk-theme-switch.install0000644000000000000000000000003212170251053013731 0ustar gtk-theme-switch2 usr/bin debian/gtk-theme-switch.manpages0000644000000000000000000000002412170250542014061 0ustar gtk-theme-switch2.1 debian/rules0000755000000000000000000000042512170267316010254 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_build: make CFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get LDFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" LIBS_GTK2="-lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lglib-2.0" override_dh_auto_install: debian/patches/0000755000000000000000000000000012170263410010611 5ustar debian/patches/exit-cleanly-when-we-have-no-homedir.patch0000644000000000000000000000152212170263717020572 0ustar Description: Exit when there is no HOME environment variable The home directory is used in multiple places without checking whether it is non-NULL. I think that it is very unlikely for someone to want to use this program without that variable in the environment, so we just bail out if it is missing. . If anyone wants gtk-theme-switch2 to work without a HOME environment variable, they will surely file a bug about this. Author: Marius Gavrilescu Forwarded: no Last-Update: 2013-07-13 --- a/main.c +++ b/main.c @@ -951,6 +951,11 @@ newfont = 0; execname = argv[0]; homedir = getenv("HOME"); + if(homedir == NULL) + { + fprintf(stderr, "No HOME variable in environment, bailing out\n"); + return 0; + } hash = g_hash_table_new (g_str_hash, g_str_equal); if (argc == 1) /* start in dock mode auto if no args */ debian/patches/series0000644000000000000000000000007612170263550012036 0ustar fix-spelling.patch exit-cleanly-when-we-have-no-homedir.patch debian/patches/fix-spelling.patch0000644000000000000000000000117112170255014014234 0ustar Description: Change 'absoulte' to 'absolute' in main.c Author: Marius Gavrilescu Forwarded: no Last-Update: 2013-07-13 --- a/main.c +++ b/main.c @@ -283,7 +283,7 @@ Passing no command line arguments will cause %s to start in dock-mode)\n\n\ \ \"file\" represents any one of (looked for in the listed order):\n\ -1) An absoulte or relative path to a GTK theme directory.\n\ +1) An absolute or relative path to a GTK theme directory.\n\ A directory is considered a theme directory if it contains a\n\ gtk/gtkrc file.\n\ 2) A gzipped tar file which expands to a GTK theme directory as explained in 1).\n\ debian/watch0000644000000000000000000000017712170237527010232 0ustar #watch control file for uscan version=3 http://download.gna.org/gtk-theme-switch/gtk-theme-switch-(.*)\.tar\.gz debian uupdate debian/copyright0000644000000000000000000000235412172216345011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: gtk-theme-switch Source: http://gna.org/projects/gtk-theme-switch/ Files: * Copyright: 2009, Maher Awamy 2009, Aaron Lehmann License: GPL-2+ Files: debian/* Copyright: Aaron Lehmann 2009, Denis Briand 2013, Marius Gavrilescu License: GPL-2+ License: GPL-2+ 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; version 2 dated June, 1991. . 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 GNU/Linux systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. debian/gtk-theme-switch2.10000644000000000000000000000306012170237527012523 0ustar .\" This -*- nroff -*- file has been generated from .\" DocBook SGML with docbook-to-man on Debian GNU/Linux. .TH "gtk-theme-switch" "1" .SH "NAME" gtk-theme-switch2 \(em program to preview and adjust your GTK+ 2.x theme .SH "SYNOPSIS" .PP \fBgtk-theme-switch2\fP [\fB-h\fP] [\fB-p \fItheme\fP\fP] [\fB-i \fItarball\fP\fP] [\fB-f \fIfont\fP\fP] [\fB-d\fP] .SH "DESCRIPTION" .PP This manual page documents briefly the \fBgtk-theme-switch2\fP command, utility for managing GTK+ 2.x theme. .PP The interface is simple; a "theme dock" is used to select the theme you wish to change to or preview, and then it is a matter of selecting what you want to do - apply it or preview it. .SH "OPTIONS" .IP "\fB-h\fP" 10 Show summary of options. .IP "\fB-d\fP " 10 Show the 'theme dock' (default.) .IP "\fB-p [theme]\fP " 10 Previews the specified theme, or installs it if in a tarball and then previews. .IP "\fB-i [theme]\fP " 10 Installs the specified theme, or installs it if in a tarball. .IP "\fB-f [font]\fP " 10 Change the GTK+ display font to font. .SH "SEE ALSO" .PP None. .SH "AUTHOR" .PP This manual page was written by Joshua Kwan for the \fBDebian\fP system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. created by instant / docbook-to-man, Sun 17 Aug 2003, 01:18 debian/menu0000644000000000000000000000023312170237527010061 0ustar ?package(gtk-theme-switch):needs="X11" section="Applications/System/Administration" \ title="GTK+ 2.0 Theme Switch" command="/usr/bin/gtk-theme-switch2" debian/changelog0000644000000000000000000001776712172216313011060 0ustar gtk-theme-switch (2.1.0-3) unstable; urgency=low * New maintainer (Closes: #588836) * Bump debhelper compat to 9 * Bump Standards-Version to 3.9.4 * Fix spelling error in help * Use dh-style debian/rules * Add hardening * Exit cleanly if there is no HOME environment variable (Closes: #716007) * Remove some useless dependencies * Update copyright to DEP5 format -- Marius Gavrilescu Sat, 13 Jul 2013 16:31:46 +0300 gtk-theme-switch (2.1.0-2) unstable; urgency=low * Switch to dpkg-source 3.0 (quilt) format. * Bump standards version to 3.8.4. * Allow Debian Maintainers uploads. * Add ${misc:Depends} to the binary dependencies. -- Denis Briand Sun, 14 Mar 2010 19:20:29 +0100 gtk-theme-switch (2.1.0-1) unstable; urgency=low * New upstream release. * Become non native Debian package. * Add debian/watch file. * Add Homepage in debian/control. * Add all authors in debian/copyright. * Bump copyright year. -- Denis Briand Wed, 06 May 2009 14:34:25 +0200 gtk-theme-switch (2.0.6) unstable; urgency=low * New Maintainer (Closes: #462908) * solve an unchecked fopen() (Closes: #498447) + Thanks to François Wendling for his audit + and for his patch. * fix hash table pointer issue (Closes: #229384) + Thanks to Ron Murray for his work and for his patch. * rename switch2.* by gtk-theme-switch2.* + and add gtk-theme-switch2 name in gtkrc-2.0 conf file (Closes: #319286). * Bump compat to 7. * Bump standards version to 3.8.1. * Remove unused switch.c and switch.1 files. * Fit Makefile and debian/rules to the renamed files. * Remove obsolete debian/README.debian file. * Remove obsolete debian/links file. * Fit debian/menu to the renamed bin file. * Fix versionless symlink license in debian/copyright. * Fit man file to the renamed bin file. * Rename unused ChangeLog to ChangeLog.old * Change deprecated "dh_clean -k" in "dh_prep" in debian/rules. -- Denis Briand Sat, 11 Apr 2009 18:36:20 +0200 gtk-theme-switch (2.0.5) unstable; urgency=low * QA upload. + Set maintainer to Debian QA Group . * Build gtk2 binary only. (Closes: #462906, #462904, #291008). + Rename debian/switch.1 to switch2.1 to match binary. * Drop recommends for gtk-engines-pixmap. (Closes: #473847). + Thanks to amaya for the bug report and fix. * Update FSF address in copyright. * Bump debhelper build-dep and compat to 5. * Bump Standards Version to 3.7.3. + Menu policy transition. -- Barry deFreese Tue, 15 Apr 2008 23:28:49 -0400 gtk-theme-switch (2.0.4) unstable; urgency=low * switch.c (get_dirs): the gtk-2.0/gtkrc dir is used for gtk-2.0 themes, we should use gtk/gtkrc for gtk themes. thanks to Tobias Jordan for the patch. (Closes: #255722, #306245). -- Pedro Villavicencio Garrido Sat, 30 Apr 2005 20:26:10 -0400 gtk-theme-switch (2.0.3) unstable; urgency=low * Fixed bug #278179. -- Pedro Villavicencio Garrido Mon, 25 Oct 2004 15:56:29 -0300 gtk-theme-switch (2.0.2) unstable; urgency=low * New Maintainer with previous Maintainer consent's. * gtk-theme-switch2 overwritte ~/.gtkrc-2.0, so we made a backup of this file before overwritte them. (Closes : #271450) -- Pedro Villavicencio Garrido Tue, 14 Sep 2004 11:16:43 -0400 gtk-theme-switch (2.0.1) unstable; urgency=low * New upstream (me) release. Becomes Debian native. * These patches are new, but were merged into the new native source: - 05_use_2.0_in_mine.dpatch: use file name '.gtkrc-2.0.mine' when writing canned .gtkrc-2.0 for personal changes to avoid conflict with .gtkrc.mine. - 06_check_gtkrc_NULL.dpatch: check to see whether gtkrc is NULL, or else feof() and fclose() will choke on it. Thanks Zack Cerza. * Quote stuff in debian/menu. -- Joshua Kwan Wed, 16 Jun 2004 00:31:55 -0700 gtk-theme-switch (2.0.0rc2+1.0.1-4) unstable; urgency=medium * 03_path_search.dpatch: don't use if (access(bleh)) to see if an error was returned, use if (access(bleh) == -1), to avoid false positives. Also fix a memory leak with g_strconcat for both switch and switch2. * Bump to Standards-Version 3.6.1.0. * Menu title is really useless, make it a bit nicer. * Fix copyright file to include a Copyright and the GPL short blurb instead of just 'GPLv2', per Peter Palfrader's recommendation. -- Joshua Kwan Sun, 14 Dec 2003 19:44:48 -0800 gtk-theme-switch (2.0.0rc2+1.0.1-3) unstable; urgency=medium * Recommend gtk-engines-pixmap - required for many themes downloaded outside of Debian. (Closes: #204964) * Add a README.Debian. * Change the switch2 symlink to gtk-theme-switch2, since most people will want to see both in the autocompletion of 'gtk-theme-switch.' Complain if this is undesirable. * Add a blank binary-indep target to conform with policy. * Replace manpage with a nicer and more descriptive one which includes a description of switch2, made by myself. * Update to Standards-Version 3.6.0 - no changes needed. * Tweak the description a little bit. -- Joshua Kwan Sun, 17 Aug 2003 01:25:25 -0700 gtk-theme-switch (2.0.0rc2+1.0.1-2) unstable; urgency=low * switch2 work: + fix the mkdir issue (see #84916, switch had the same issue) + as with patch for #164059, don't show theme dirs that do not have gtk-2.0/gtkrc. (Closes: #198915) * Use -g when compiling, strip stuff off later. -- Joshua Kwan Thu, 26 Jun 2003 20:19:53 -0700 gtk-theme-switch (2.0.0rc2+1.0.1-1) unstable; urgency=medium * New maintainer (with previous maintainer's consent) * New upstream version 1.0.1 (GTK+ 1.x version): + Fix for the 100% CPU usage bug when previewing themes (Closes: #168445) * We now build the GTK+ 2.0 binary as well. Available from the same upstream location. (Closes: #185519) * Removed dumb debian/CVS directory * Fixed the source to take umask into account when creating ~/.themes (Closes: #84916) * Applied patch from ilmari@ping.uio.no to fix displaying of directories within /usr/share/themes that did not have gtk/gtkrc (thus not valid themes. Closes: #164059) * Revise debian/: + Use debian/compat instead of DH_COMPAT + Remove old DH_OPTIONS stuff in rules, useless configure{-stamp} targets, and boilerplate comments. + Symlink /usr/bin/switch to /usr/bin/gtk-theme-switch for consistency. (Closes: #84912) + Use dh_installman instead of dh_installmanpages + Remove useless calls to other dh_* programs. + Remove dependency on tar, which is a required package anyway. + Install upstream readme, changelog and todo files -- Joshua Kwan Thu, 5 Jun 2003 16:27:37 -0700 gtk-theme-switch (1.0-3) unstable; urgency=low * Rebuild to eliminate xlib6g dependency -- Aaron Lehmann Wed, 04 Dec 2002 16:23:15 -0800 gtk-theme-switch (1.0-2) unstable; urgency=low * Only install manpage once -- Aaron Lehmann Mon, 6 Nov 2000 08:28:53 -0700 gtk-theme-switch (1.0-1) unstable; urgency=medium * Major new upstream release -- Aaron Lehmann Tue, 24 Oct 2000 19:03:36 -0700 gtk-theme-switch (0.4-4) unstable; urgency=low * Use debhelper * Depend on Gtk::Perl (libgtk-perl) -- Aaron Lehmann Fri, 22 Sep 2000 16:29:36 -0700 gtk-theme-switch (0.4-3) unstable; urgency=low * make it actually work -- Aaron Lehmann Mon, 18 Sep 2000 18:45:03 -0700 gtk-theme-switch (0.4-2) unstable; urgency=low * Make undocumented man pages work * Depend on perl * Fix first line of README -- Aaron Lehmann Mon, 18 Sep 2000 17:28:58 -0700 gtk-theme-switch (0.4-1) unstable; urgency=low * Initial release. -- Aaron Lehmann Mon, 18 Sep 2000 16:53:50 -0700