--- resapplet-0.0.7+cvs2005.09.30.orig/debian/rules +++ resapplet-0.0.7+cvs2005.09.30/debian/rules @@ -0,0 +1,67 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/dpatch/dpatch.make + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +config.status: configure + dh_testdir + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --libexecdir=/usr/lib --sysconfdir=/etc --x-libraries=/usr/lib --x-includes=/usr/include/X11 + +build: build-stamp + +build-stamp: patch config.status + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + dh_clean + + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install DESTDIR=$(CURDIR)/debian/resapplet + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs -X NEWS + dh_installexamples + dh_installman debian/resapplet.1 + dh_icons + dh_link + dh_strip + dh_compress + dh_fixperms + 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 --- resapplet-0.0.7+cvs2005.09.30.orig/debian/compat +++ resapplet-0.0.7+cvs2005.09.30/debian/compat @@ -0,0 +1 @@ +4 --- resapplet-0.0.7+cvs2005.09.30.orig/debian/copyright +++ resapplet-0.0.7+cvs2005.09.30/debian/copyright @@ -0,0 +1,43 @@ +This package was debianized by Seb Payne on +Thu, 29 Sep 2005 17:46:04 +0100. + +It was downloaded from http://cvs.gnome.org/viewcvs/resapplet/ + +Upstream Authors: Nat Friedman and Robert Love + +Copyright Holders: + Copyright (c) 2005 Nat Friedman and Robert Love (for everything not noted below) + Copyright (c) 2002 Anders Carlsson (for src/eggtrayicon.c) + Copyright (c) 1999 Elliot Lee (for src/clipboard.c) + + +License: + +This program 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 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. + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/GPL-2. + +##################### +for src/eggtrayicon.c +##################### +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +This library 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 +Lesser General Public License for more details. + +On Debian systems, the complete text of the GNU General Public +License, version 2, can be found in /usr/share/common-licenses/LGPL-2 --- resapplet-0.0.7+cvs2005.09.30.orig/debian/resapplet.1 +++ resapplet-0.0.7+cvs2005.09.30/debian/resapplet.1 @@ -0,0 +1,14 @@ +.TH RESAPPLET 1 "29 Sep 2005" "netapplet" "Linux User's Manual" + +.SH NAME +resapplet \- on-the-fly resolution changer + +.SH SYNOPSIS +.BI resapplet + +.SH DESCRIPTION +The command +.B resapplet +will add the resapplet to appear in the notification area. Clicking on +it allows you to select the resolution you want. A confirmation box will +appear after choosing the resolution. --- resapplet-0.0.7+cvs2005.09.30.orig/debian/control +++ resapplet-0.0.7+cvs2005.09.30/debian/control @@ -0,0 +1,14 @@ +Source: resapplet +Section: gnome +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Seb Payne +Build-Depends: debhelper (>= 5.0.51), dpatch, libxml-parser-perl, libgnomeui-dev, libglade2-dev, libglib2.0-dev +Standards-Version: 3.6.2 + +Package: resapplet +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A small applet to change your screen resolution + It uses XRANDR on-the-fly as well as GNOME Resolution Preferences. + Handy for laptops when using data projectors which only run at 1024x768. --- resapplet-0.0.7+cvs2005.09.30.orig/debian/README.Debian +++ resapplet-0.0.7+cvs2005.09.30/debian/README.Debian @@ -0,0 +1,8 @@ +resapplet for Debian +-------------------- + +resapplet is a very handy applet which I have found great use for. However, there +have been no releases made yet so this is the current GNOME CVS version but +there seems to be little development. It works very will with GNOME 2.12 + + -- Seb Payne , Thu, 29 Sep 2005 17:46:04 +0100 --- resapplet-0.0.7+cvs2005.09.30.orig/debian/changelog +++ resapplet-0.0.7+cvs2005.09.30/debian/changelog @@ -0,0 +1,43 @@ +resapplet (0.0.7+cvs2005.09.30-0ubuntu6) raring; urgency=low + + * Added missing lib to link, fixing FTBFS. + + -- Daniel T Chen Thu, 18 Apr 2013 01:27:09 -0400 + +resapplet (0.0.7+cvs2005.09.30-0ubuntu5) hardy; urgency=low + + * debian/rules: + + Replace dh_iconcache with dh_icons. + * debian/control: + + Build-depend on debhelper >= 5.0.51 (for dh_icons). + + -- Michael Bienia Sun, 02 Mar 2008 00:52:57 +0100 + +resapplet (0.0.7+cvs2005.09.30-0ubuntu4) gutsy; urgency=low + + * debian/control: Update maintainer fields according to debian- + maintainer-field spec. + + -- Martin Pitt Wed, 15 Aug 2007 08:09:53 +0000 + +resapplet (0.0.7+cvs2005.09.30-0ubuntu3) dapper; urgency=low + + * debian/patches: + -> Added 02_egg-tray-icon-transparency.dpatch (upstream patch). Thanks to + Whoopie for finding the patch + (Closes: Malone #45535). + + -- Jeremie Corbier Tue, 23 May 2006 15:54:04 +0200 + +resapplet (0.0.7+cvs2005.09.30-0ubuntu2) dapper; urgency=low + + * debian/rules: + -> Added dh_iconcache. + + -- Jeremie Corbier Fri, 12 May 2006 01:07:30 +0200 + +resapplet (0.0.7+cvs2005.09.30-0ubuntu1) breezy; urgency=low + + * Inital Build for Ubuntu Breezy from GNOME CVS + + -- Seb Payne Sat, 1 Oct 2005 13:56:37 +0100 --- resapplet-0.0.7+cvs2005.09.30.orig/debian/patches/00list +++ resapplet-0.0.7+cvs2005.09.30/debian/patches/00list @@ -0,0 +1,4 @@ +01resapplet.dpatch +#endif +02_egg-tray-icon-transparency.dpatch +03_lib_underlinkage.dpatch --- resapplet-0.0.7+cvs2005.09.30.orig/debian/patches/03_lib_underlinkage.dpatch +++ resapplet-0.0.7+cvs2005.09.30/debian/patches/03_lib_underlinkage.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_lib_underlinkage.dpatch by > +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' resapplet-0.0.7+cvs2005.09.30~/src/Makefile.am resapplet-0.0.7+cvs2005.09.30/src/Makefile.am +--- resapplet-0.0.7+cvs2005.09.30~/src/Makefile.am 2005-09-01 12:34:22.000000000 -0400 ++++ resapplet-0.0.7+cvs2005.09.30/src/Makefile.am 2013-04-18 01:28:21.856753780 -0400 +@@ -23,4 +23,4 @@ + clipboard.h \ + resapplet.c + +-resapplet_LDADD = @RESAPPLET_LIBS@ ++resapplet_LDADD = @RESAPPLET_LIBS@ -lX11 +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' resapplet-0.0.7+cvs2005.09.30~/src/Makefile.in resapplet-0.0.7+cvs2005.09.30/src/Makefile.in +--- resapplet-0.0.7+cvs2005.09.30~/src/Makefile.in 2005-09-30 14:53:40.000000000 -0400 ++++ resapplet-0.0.7+cvs2005.09.30/src/Makefile.in 2013-04-18 01:28:31.624979836 -0400 +@@ -176,7 +176,7 @@ + clipboard.h \ + resapplet.c + +-resapplet_LDADD = @RESAPPLET_LIBS@ ++resapplet_LDADD = @RESAPPLET_LIBS@ -lX11 + all: all-am + + .SUFFIXES: --- resapplet-0.0.7+cvs2005.09.30.orig/debian/patches/01resapplet.dpatch +++ resapplet-0.0.7+cvs2005.09.30/debian/patches/01resapplet.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01resapplet.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad --exclude=CVS --exclude=.svn ./resapplet.desktop /tmp/dpep-work.wGbiTC/resapplet-0.0.7+cvs2005.09.29/resapplet.desktop +--- ./resapplet.desktop 2005-08-12 20:35:02.000000000 +0100 ++++ /tmp/dpep-work.wGbiTC/resapplet-0.0.7+cvs2005.09.29/resapplet.desktop 2005-09-30 16:40:43.000000000 +0100 +@@ -30,5 +30,5 @@ + Terminal=false + Type=Application + TryExec=resapplet +-Categories=GNOME;Application;SystemTools;X-Ximian-System-Toplevel; ++Categories=GTK;GNOME;Application;Core;Utility; + StartupNotify=false +diff -urNad --exclude=CVS --exclude=.svn ./src/resapplet.c /tmp/dpep-work.wGbiTC/resapplet-0.0.7+cvs2005.09.29/src/resapplet.c +--- ./src/resapplet.c 2005-09-01 17:34:22.000000000 +0100 ++++ /tmp/dpep-work.wGbiTC/resapplet-0.0.7+cvs2005.09.29/src/resapplet.c 2005-09-30 16:39:56.000000000 +0100 +@@ -28,7 +28,7 @@ + #include "config.h" + + #define REVERT_COUNT 20 +-#define YAST2_ARGV { "/opt/gnome/bin/gnomesu", "/sbin/yast2", "x11", NULL } ++#define GDP_ARGV { "/usr/bin/gnome-display-properties", "x11", NULL } + + typedef struct { + int current_width; +@@ -585,7 +585,7 @@ + configure_activate_cb (GtkMenuItem *mi G_GNUC_UNUSED, + gpointer user_data G_GNUC_UNUSED) + { +- char *argv[] = YAST2_ARGV; ++ char *argv[] = GDP_ARGV; + GError *err = NULL; + + if (!g_spawn_async (NULL, argv, NULL, 0, NULL, NULL, NULL, &err)) { --- resapplet-0.0.7+cvs2005.09.30.orig/debian/patches/02_egg-tray-icon-transparency.dpatch +++ resapplet-0.0.7+cvs2005.09.30/debian/patches/02_egg-tray-icon-transparency.dpatch @@ -0,0 +1,100 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_egg-tray-icon-transparency.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add transparency to the tray icon. +## DP: Patch from http://bugzilla.gnome.org/attachment.cgi?id=59957 + +@DPATCH@ + +diff -u -r1.8 eggtrayicon.c +--- orig/src/eggtrayicon.c 16 Jun 2005 13:27:40 -0000 1.8 ++++ dest/src/eggtrayicon.c 22 Feb 2006 21:35:25 -0000 +@@ -67,6 +67,9 @@ + static void egg_tray_icon_realize (GtkWidget *widget); + static void egg_tray_icon_unrealize (GtkWidget *widget); + ++static void egg_tray_icon_add (GtkContainer *container, ++ GtkWidget *widget); ++ + #ifdef GDK_WINDOWING_X11 + static void egg_tray_icon_update_manager_window (EggTrayIcon *icon, + gboolean dock_if_realized); +@@ -113,6 +116,7 @@ + { + GObjectClass *gobject_class = (GObjectClass *)klass; + GtkWidgetClass *widget_class = (GtkWidgetClass *)klass; ++ GtkContainerClass *container_class = (GtkContainerClass *)klass; + + parent_class = g_type_class_peek_parent (klass); + +@@ -121,6 +125,8 @@ + widget_class->realize = egg_tray_icon_realize; + widget_class->unrealize = egg_tray_icon_unrealize; + ++ container_class->add = egg_tray_icon_add; ++ + g_object_class_install_property (gobject_class, + PROP_ORIENTATION, + g_param_spec_enum ("orientation", +@@ -367,6 +373,36 @@ + + #endif + ++static gboolean ++transparent_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data) ++{ ++ gdk_window_clear_area (widget->window, event->area.x, event->area.y, ++ event->area.width, event->area.height); ++ return FALSE; ++} ++ ++static void ++make_transparent_again (GtkWidget *widget, GtkStyle *previous_style, ++ gpointer user_data) ++{ ++ gdk_window_set_back_pixmap (widget->window, NULL, TRUE); ++} ++ ++static void ++make_transparent (GtkWidget *widget, gpointer user_data) ++{ ++ if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget)) ++ return; ++ ++ gtk_widget_set_app_paintable (widget, TRUE); ++ gtk_widget_set_double_buffered (widget, FALSE); ++ gdk_window_set_back_pixmap (widget->window, NULL, TRUE); ++ g_signal_connect (widget, "expose_event", ++ G_CALLBACK (transparent_expose_event), NULL); ++ g_signal_connect_after (widget, "style_set", ++ G_CALLBACK (make_transparent_again), NULL); ++} ++ + static void + egg_tray_icon_realize (GtkWidget *widget) + { +@@ -381,6 +417,8 @@ + if (GTK_WIDGET_CLASS (parent_class)->realize) + GTK_WIDGET_CLASS (parent_class)->realize (widget); + ++ make_transparent (widget, NULL); ++ + screen = gtk_widget_get_screen (widget); + display = gdk_screen_get_display (screen); + xdisplay = gdk_x11_display_get_xdisplay (display); +@@ -411,6 +449,14 @@ + gdk_window_add_filter (root_window, + egg_tray_icon_manager_filter, icon); + #endif ++} ++ ++static void ++egg_tray_icon_add (GtkContainer *container, GtkWidget *widget) ++{ ++ g_signal_connect (widget, "realize", ++ G_CALLBACK (make_transparent), NULL); ++ GTK_CONTAINER_CLASS (parent_class)->add (container, widget); + } + + EggTrayIcon *