debian/0000755000000000000000000000000011625135704007172 5ustar debian/copyright0000644000000000000000000000157411566413766011147 0ustar This package was debianized by Bernhard R. Link on Tue, 26 Sep 2005 15:44:22 +0200. It was written for this package. Copyright (C) 2005,2009 Bernhard R. Link This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program 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 with your Debian GNU/Linux system, in /usr/share/common-licenses/GPL-2, or with the source package as the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA debian/watch0000644000000000000000000000002611566413766010234 0ustar # nowhere to get from debian/menu-method0000644000000000000000000000102311566413766011346 0ustar #!/usr/bin/install-menu #I need menu-1.4! # #NOTE: the first line of this script _must_ be # equal to "#!/usr/sbin/install-menu", otherwise update-menus # will feed this script old-compat-mode data. # #More info: /usr/doc/menu/html. # compat="menu-1" !include menu.h supported wm= $title "=" $command "\n" endsupported startmenu= "\n" endmenu= "\n" submenutitle= "\n" genmenu= "windowmanagers" rootprefix="/var/lib/choosewm/" userprefix="/.choosewm/windowmanagers" treewalk="c(m)" mainmenutitle="Main Menu" debian/dirs0000644000000000000000000000005211566413766010066 0ustar usr/bin etc/X11/choosewm var/lib/choosewm debian/menu0000644000000000000000000000026211566413766010074 0ustar ?package(choosewm):needs="X11" section="Applications/System/Administration"\ title="choose wm"\ description="Change default window manager"\ command="/usr/bin/choosewm -c" debian/source/0000755000000000000000000000000011566416650010500 5ustar debian/source/format0000644000000000000000000000001411566416650011706 0ustar 3.0 (quilt) debian/control0000644000000000000000000000127311566423607010606 0ustar Source: choosewm Section: x11 Priority: extra Maintainer: Bernhard R. Link Build-Depends: debhelper (>= 5), libglib2.0-dev, libpango1.0-dev, libatk1.0-dev, libgtk2.0-dev, libcairo2-dev Standards-Version: 3.9.2 Package: choosewm Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: menu Description: fake x-session-manager allowing the user to choose a wm When installed, this package installs a x-session-manager alternative allowing the user to choose the window manager. The list is taken by default from everything installing a window manager option in the Debian menu system, but the administrator or user can add or remove items via config files. debian/docs0000644000000000000000000000001411566413766010053 0ustar NEWS README debian/changelog0000644000000000000000000000532711625135704011053 0ustar choosewm (0.1.6-3) unstable; urgency=low * quick fix to make it build again until I have time for a proper solution. (Closes: 639048) -- Bernhard R. Link Wed, 24 Aug 2011 10:51:04 +0200 choosewm (0.1.6-2) unstable; urgency=low * quick fix to make it build again until I have time for a proper solution. (Closes: 622044) * GTK_WIDGET_SET_FLAGS is deprecated so replace it * use dpkg-buildflags -- Bernhard R. Link Mon, 23 May 2011 10:21:09 +0200 choosewm (0.1.6-1) unstable; urgency=low * fix short form -t of --text not working * fix typo causing prerm failure when menu is not installed (Closes: 574196) * add Recommends for menu * bump Standards-Version (no changes needed) -- Bernhard R. Link Wed, 17 Mar 2010 10:33:21 +0100 choosewm (0.1.5-1) unstable; urgency=low * also link against libgobject to please binutils-gold * bump Standards-Version (no changes needed) -- Bernhard R. Link Mon, 04 Jan 2010 16:55:12 +0100 choosewm (0.1.4-1) unstable; urgency=low * add --text to ask at the terminal, used automatically by --config when there is not DISPLAY set. (Closes: 519323) * bump Standards-Version to 3.8.1 (support new DEB_BUILD_OPTIONS) * remove /var/lib/choosewm/windowmanagers in prerm -- Bernhard R. Link Thu, 11 Jun 2009 15:41:51 +0200 choosewm (0.1.3-2) unstable; urgency=low * update menu item to new hierarchy layout * increase debhelper compatibility level to 5, standards version to 3.7.3 -- Bernhard R. Link Sat, 9 Feb 2008 16:46:48 +0100 choosewm (0.1.3-1) unstable; urgency=low * clean up debian/rules * bump Standards-Version to 3.7.2 (no change needed) * make reference in debian/copyright point to the GPL-2 file * new bug fix release: - don't leave empty files when running with full quota - don't stop on empty or unreadable files - add an unknown but existing default selection to the list - add rescue mode to still be useable when no window managers known to the menu system (Closes: 415018) -- Bernhard R. Link Sun, 1 Jul 2007 13:31:22 +0200 choosewm (0.1.2-1) unstable; urgency=low * work around gtk needing cairo needing more strange -I flags (Closes: 358202) * use /usr/bin/install.menu instead of sbin * properly link against gdk -- Bernhard R. Link Wed, 22 Mar 2006 15:16:41 +0100 choosewm (0.1.1-1) unstable; urgency=low * Fix segfault of inalias -- Bernhard R. Link Tue, 27 Sep 2005 17:08:34 +0200 choosewm (0.1-1) unstable; urgency=low * Initial Release. -- Bernhard R. Link Mon, 26 Sep 2005 15:44:36 +0200 debian/patches/0000755000000000000000000000000011566424257010631 5ustar debian/patches/avoid-deprecated.diff0000644000000000000000000000116211566424257014663 0ustar Author: Bernhard R. Link Description: replace deprecated functions --- choosewm-0.1.6.orig/main.c +++ choosewm-0.1.6/main.c @@ -370,8 +370,8 @@ int main(int argc, char *argv[]){ gtk_container_set_border_width(GTK_CONTAINER(window), 10); makeWindowContent(GTK_CONTAINER(window)); - GTK_WIDGET_SET_FLAGS(startbutton, GTK_CAN_DEFAULT); - GTK_WIDGET_SET_FLAGS(startbutton, GTK_RECEIVES_DEFAULT); + gtk_widget_set_can_default(startbutton, TRUE); + gtk_widget_set_receives_default(startbutton, TRUE); gtk_widget_grab_default(startbutton); screen = gtk_window_get_screen(GTK_WINDOW(window)); debian/patches/series0000644000000000000000000000002611566423470012040 0ustar avoid-deprecated.diff debian/postinst0000644000000000000000000000217211566413766011015 0ustar #! /bin/sh # postinst script for choosewm # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # case "$1" in configure) update-alternatives --install /usr/bin/x-session-manager \ x-session-manager /usr/bin/choosewm 99 \ --slave /usr/share/man/man1/x-session-manager.1.gz \ x-session-manager.1.gz /usr/share/man/man1/choosewm.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/compat0000644000000000000000000000000211566413766010403 0ustar 5 debian/prerm0000644000000000000000000000211011566413766010247 0ustar #! /bin/sh # prerm script for choosewm # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in deconfigure) update-alternatives --remove x-session-manager /usr/bin/choosewm ;; remove) update-alternatives --remove x-session-manager /usr/bin/choosewm rm -f /var/lib/choosewm/windowmanagers ;; upgrade) ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/rules0000755000000000000000000000401011625135275010250 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS := $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) CFLAGS += -Wall -g -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith LDFLAGS := -Wl,-z,defs $(LDFLAGS) CPPFLAGS := $(CPPFLAGS) $(shell pkg-config --cflags gtk+-x11-2.0) ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) endif config.status: configure dh_testdir ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ CPPFLAGS='$(CPPFLAGS)' \ CFLAGS="$(CFLAGS)" \ LDFLAGS="$(LDFLAGS)" \ || ( echo configure failed with $$? ; cat config.log ; echo "[end of config.log]" ; exit 1 ) build-arch-stamp: config.status dh_testdir $(MAKE) touch build-arch-stamp build-arch: build-arch-stamp build-indep: clean: dh_testdir dh_testroot rm -f build-arch-stamp if test -e config.status -o -e config.log ; then \ $(MAKE) distclean ; \ fi dh_clean # Build architecture-independent files: binary-indep: build-indep # We have nothing to do # Build architecture-dependent files: binary-arch: build-arch dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/choosewm install -m 644 docs/config $(CURDIR)/debian/choosewm/etc/X11/choosewm/config dh_installchangelogs ChangeLog dh_installdocs dh_installexamples dh_installmenu dh_installman dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch build: build-arch build-indep .PHONY: build build-arch build-indep clean binary-indep binary-arch binary