debian/0000755000000000000000000000000011572427303007172 5ustar debian/control0000644000000000000000000000142711572426677010616 0ustar Source: gtk-chtheme Section: x11 Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Ulises Vitulli Build-Depends: debhelper (>= 5), libgtk2.0-dev Standards-Version: 3.9.2.0 Homepage: http://plasmasturm.org/code/gtk-chtheme/ Package: gtk-chtheme Section: x11 Priority: optional Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: GTK+ 2.0 theme changer and previewer utility 'Gtk Theme Switch' based utility that aims to make themes previews and selections as slick as possible. Themes installed on the system are presented for selection and previewed on the fly. . This utility was develop only to work for GTK+ 2.x themes. For GTK+ 1.x themes use 'gtk-theme-switch' package debian/menu0000644000000000000000000000036410673705661010073 0ustar ?package(gtk-chtheme):needs="X11"\ hints="GTK2,GTK+2.0,Themes,Skins,Appearance,Gnome"\ section="Applications/System/Administration"\ title="GTK+ 2.0 theme manager"\ command="/usr/bin/gtk-chtheme"\ icon="/usr/share/pixmaps/gtk-chtheme.xpm" debian/compat0000644000000000000000000000000210673667054010402 0ustar 5 debian/gtk-chtheme.desktop0000644000000000000000000000041111405715306012757 0ustar [Desktop Entry] Version=1.0 Name=Gtk-ChTheme GenericName=GTK+ 2.0 theme changer and previewer utility Comment=GTK+2.0 Theme Changer Exec=/usr/bin/gtk-chtheme Terminal=false Type=Application Icon=/usr/share/pixmaps/gtk-chtheme.xpm Categories=DesktopSettings;System; debian/rules0000755000000000000000000000264111550306344010252 0ustar #!/usr/bin/make -f # -*- makefile -*- # debian/rules for gtk-chtheme CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif configure: configure-stamp configure-stamp: dh_testdir touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) #docbook-to-man debian/gtk-chtheme.sgml > gtk-chtheme.1 touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs usr/bin usr/share/pixmaps usr/share/applications dh_install debian/gtk-chtheme.desktop usr/share/applications # I know, I know, why not using dh_install ? # A: dh_install can't rename files. That bastard! It ruined off all beauty :) cp stock_menu_about.xpm $(CURDIR)/debian/gtk-chtheme/usr/share/pixmaps/gtk-chtheme.xpm $(MAKE) DESTDIR=$(CURDIR)/debian/gtk-chtheme install # Build architecture-independent files here. binary-indep: build install # Blank here :) # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installman gtk-chtheme.1 dh_installmenu dh_link dh_strip dh_fixperms dh_compress dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/patches/0000755000000000000000000000000011572427243010624 5ustar debian/patches/backup-gtkrc-implementation.patch0000644000000000000000000000342310756437575017263 0ustar diff -ruN gtk-chtheme-0.3.1.old/main.c gtk-chtheme-0.3.1/main.c --- gtk-chtheme-0.3.1.old/main.c 2004-02-09 01:33:28.000000000 -0300 +++ gtk-chtheme-0.3.1/main.c 2008-02-18 23:18:13.000000000 -0200 @@ -79,9 +79,13 @@ cleanup_temporary(); - FILE *gtkrc_fh = is_preview - ? fdopen(g_file_open_tmp("gtkrc.preview-XXXXXXXX", &tmp_rc, NULL), "w+") - : fopen(gtkrc, "w"); + FILE *gtkrc_fh; + if (is_preview) { + gtkrc_fh = fdopen(g_file_open_tmp("gtkrc.preview-XXXXXXXX", &tmp_rc, NULL), "w+"); + } else { + backup_gtkrc(gtkrc); + gtkrc_fh = fopen(gtkrc, "w"); + } gchar *include_file = g_hash_table_lookup(hash, themename); @@ -99,6 +103,7 @@ fprintf(gtkrc_fh, "include \"%s/.gtkrc.mine\"\n\n", getenv("HOME")); fprintf(gtkrc_fh, "# -- THEME AUTO-WRITTEN DO NOT EDIT\n"); + fclose(gtkrc_fh); gchar *default_files[] = { is_preview ? tmp_rc : gtkrc, NULL }; @@ -212,6 +217,26 @@ g_scanner_destroy(s); } +static void backup_gtkrc(gchar *path_to_gtkrc) +{ + FILE *gtkrc; + + if(!(gtkrc = fopen(path_to_gtkrc, "r"))) + return; + int c; + + gchar *file_uri = g_strdup_printf("%s/.gtkrc.bak", getenv("HOME")); + FILE *gtkrc_backup = fopen(file_uri, "w"); + + while((c = fgetc(gtkrc)) != EOF){ + fputc(c, gtkrc_backup); + } + + fclose(gtkrc); + fclose(gtkrc_backup); + g_free (file_uri); +} + int main(int argc, char *argv[]) { hash = g_hash_table_new(g_str_hash, g_str_equal); diff -ruN gtk-chtheme-0.3.1.old/main.h gtk-chtheme-0.3.1/main.h --- gtk-chtheme-0.3.1.old/main.h 2004-02-07 00:47:04.000000000 -0300 +++ gtk-chtheme-0.3.1/main.h 2008-02-18 22:12:52.000000000 -0200 @@ -26,5 +26,6 @@ void set_theme(gchar * newthemename, gboolean is_preview); gchar* get_theme(void); void apply_new_look(gboolean is_preview); +static void backup_gtkrc(gchar *path_to_gtkrc); #endif debian/patches/series0000644000000000000000000000011411572427150012032 0ustar backup-gtkrc-implementation.patch deprecated-on-gtk3+.patch as-needed.patch debian/patches/deprecated-on-gtk3+.patch0000644000000000000000000000144711550306123015273 0ustar Author: Dererk Bug-Debian: http://bugs.debian.org/621975 Description: Replace GTK_OBJECT_FLAGS() and GtkObjectFlags deprecated on GTK+3 --- gtk-chtheme-0.3.1.orig/theme_sel.c +++ gtk-chtheme-0.3.1/theme_sel.c @@ -110,7 +110,8 @@ GtkWidget *create_theme_sel(void) GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); gtk_container_add(GTK_CONTAINER(sw), theme_list); - gtk_timeout_add(0, (GtkFunction)theme_list_focus, theme_list); + gtk_timeout_add(0, (GSourceFunc)theme_list_focus, theme_list); + return sw; } --- gtk-chtheme-0.3.1.orig/util.c +++ gtk-chtheme-0.3.1/util.c @@ -19,7 +19,7 @@ Foundation, 59 Temple Place - Suite 330, GtkWidget* unfocussable(GtkWidget *w) { - GTK_WIDGET_UNSET_FLAGS(w, GTK_CAN_FOCUS); + gtk_widget_set_can_focus(w, FALSE); return w; } debian/patches/as-needed.patch0000644000000000000000000000161311572427243013473 0ustar Description: Place libraries after object files in linker call, allowing to build with --as-needed option. Author: Ilya Barygin Bug-Ubuntu: https://launchpad.net/bugs/749277 --- gtk-chtheme-0.3.1.orig/Makefile +++ gtk-chtheme-0.3.1/Makefile @@ -2,7 +2,7 @@ include Metadata CFLAGS := $(if $(RPM_OPT_FLAGS), $(RPM_OPT_FLAGS), $(CFLAGS)) -LDFLAGS = $(shell pkg-config --libs gtk+-2.0) +LIBS = $(shell pkg-config --libs gtk+-2.0) CFLAGS += -Wall CFLAGS += $(shell pkg-config --cflags gtk+-2.0) -DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED CFLAGS += -DPROJNAME='"$(PROJNAME)"' -DVERSION='"$(VERSION)"' @@ -17,7 +17,7 @@ EXTRAS = $(addprefix $(EXENAME), .spec . all: $(EXENAME) $(EXENAME).1 $(EXENAME): $(addsuffix .o, $(SRC)) - $(CC) $(LDFLAGS) $^ -o $@ + $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) $(EXENAME).1: $(EXENAME).pod pod2man $< | sed 's/^\.TH .*/.TH $(EXENAME) 1/' > $@ debian/copyright0000644000000000000000000000235311405715016011124 0ustar This package was debianized by Ulises Vitulli on Sat, 19 May 2007 08:06:19 -0300. It was downloaded from http://plasmasturm.org/code/gtk-chtheme/ Upstream Author: Aristotle Pagaltzis Copyright: Copyright © 2001-2007 Aristotle Pagaltzis 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-2'. The Debian packaging is © 2007, Ulises Vitulli and is licensed under the GPL, see above. debian/postrm0000644000000000000000000000026310673667054010454 0ustar #!/bin/sh set -e # Automatically added by dh_installmenu if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi # End automatically added section #DEBHELPER# exit 0 debian/source/0000755000000000000000000000000011405714213010464 5ustar debian/source/format0000644000000000000000000000001411405714213011672 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000300211572427302011036 0ustar gtk-chtheme (0.3.1-5ubuntu1) oneiric; urgency=low * as-needed.patch: fix FTBFS at linking stage (LP: #749277). -- Ilya Barygin Sat, 04 Jun 2011 17:10:02 +0400 gtk-chtheme (0.3.1-5) unstable; urgency=low * Fix FTBFS on some deprecated calls against gtk3+ (Closes: #621975). * Bumped Standars-Version to latest 3.9.2.0, no changes needed. -- Ulises Vitulli Sun, 10 Apr 2011 07:32:16 -0300 gtk-chtheme (0.3.1-4) unstable; urgency=low * Switched to 3.0 source format, drop quilt dependency in the way. * Remove deprected dh_desktop call. * Updated copyright file and copyright stamp. * Droped 'Encoding' entry on .desktop. * Bumped Standards-Version to 3.8.4, no changes needed. -- Ulises Vitulli Tue, 15 Jun 2010 12:07:40 -0300 gtk-chtheme (0.3.1-3) unstable; urgency=low * New maintainer (Closes: #466480). * Quilt implementation. * Implementing backup_gtkrc(), thanks Daniel Morales (Closes: #449223). * Drops Recommends field (Closes: #462905). -- Ulises Vitulli Mon, 18 Feb 2008 23:29:06 -0200 gtk-chtheme (0.3.1-2) unstable; urgency=low * Let's dh_strip handle stripping (Closes: #437110) * New debian-policy policy compatible. * Gnome launcher added. -- Mariano (Dererk) Velez Tue, 18 Sep 2007 03:21:28 -0300 gtk-chtheme (0.3.1-1) unstable; urgency=low * Initial release (Closes: #425139) -- Mariano (Dererk) Velez Sat, 19 May 2007 08:06:19 -0300