--- xsettings-kde-0.9.orig/debian/copyright +++ xsettings-kde-0.9/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Guido Günther on +Wed, 21 Jan 2009 18:58:38 +0100. + +It was downloaded from http://svn.mandriva.com/svn/soft/theme/xsettings-kde/ + +Upstream Author: + + Frederic Crozat + Owen Taylor, Red Hat, Inc. + +Copyright: + + (c) 2005, 2006, 2007, 2008 Mandriva + Copyright © 2001 Red Hat, Inc. + +License: + + You are free to distribute this software under the terms of the GNU General + Public License Version 2. The full text of this license can be found in the + file /usr/share/common-licenses/GPL-2 + +The Debian packaging is (C) 2009, Guido Günther and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- xsettings-kde-0.9.orig/debian/control +++ xsettings-kde-0.9/debian/control @@ -0,0 +1,17 @@ +Source: xsettings-kde +Section: kde +Priority: optional +Maintainer: Guido Günther +Build-Depends: cdbs, debhelper (>= 7), libfontconfig1-dev, libglib2.0-dev, + libx11-dev, pkg-config, cdbs, quilt +Standards-Version: 3.8.4 + +Package: xsettings-kde +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: XSettings daemon for KDE + This package provides a XSettings daemon for K Desktop Environment. It allows + XSettings aware applications (all GTK+ 2 and GNOME 2 applications) to be + informed instantly of changes in KDE configuration, such as theme name, default + font and so on. + --- xsettings-kde-0.9.orig/debian/changelog +++ xsettings-kde-0.9/debian/changelog @@ -0,0 +1,14 @@ +xsettings-kde (0.9-2) unstable; urgency=low + + * [e89ec72] Add autostart file + * [ce212db] Bump standards version + + -- Guido Günther Fri, 12 Mar 2010 11:54:37 +0100 + +xsettings-kde (0.9-1) unstable; urgency=low + + * Initial release (Closes: #512562) + * [eaf81d3] drop DPI settings if they're not set in KDE + + -- Guido Günther Wed, 21 Jan 2009 18:58:38 +0100 + --- xsettings-kde-0.9.orig/debian/xsettings-kde.desktop +++ xsettings-kde-0.9/debian/xsettings-kde.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +X-DBUS-StartupType=none +Exec=xsettings-kde +Name=XSettings Daemon for KDE +Type=Application +X-KDE-StartupNotify=false +OnlyShowIn=KDE; +X-KDE-autostart-phase=1 --- xsettings-kde-0.9.orig/debian/install +++ xsettings-kde-0.9/debian/install @@ -0,0 +1,2 @@ +xsettings-kde usr/bin +debian/xsettings-kde.desktop usr/share/autostart/ --- xsettings-kde-0.9.orig/debian/compat +++ xsettings-kde-0.9/debian/compat @@ -0,0 +1 @@ +7 --- xsettings-kde-0.9.orig/debian/rules +++ xsettings-kde-0.9/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk --- xsettings-kde-0.9.orig/debian/docs +++ xsettings-kde-0.9/debian/docs @@ -0,0 +1 @@ +README --- xsettings-kde-0.9.orig/debian/patches/0001-drop-DPI-settings-if-they-re-not-set-in-KDE.patch +++ xsettings-kde-0.9/debian/patches/0001-drop-DPI-settings-if-they-re-not-set-in-KDE.patch @@ -0,0 +1,61 @@ +From: =?utf-8?q?Guido=20G=C3=BCnther?= +Date: Thu, 22 Jan 2009 10:21:35 +0100 +Subject: [PATCH] drop DPI settings if they're not set in KDE + +Setting them to 0 or -1 sets them to 96dpi instead of the actual dpi +setting since gdk doesn't reprobe this. So intead of adding the whole +logic simply fall back to what gdk probed during application startup. +--- + xsettings-kde.c | 31 ++++++++++++++++++++++++++++++- + 1 files changed, 30 insertions(+), 1 deletions(-) + +diff --git a/xsettings-kde.c b/xsettings-kde.c +index de0d852..8536717 100644 +--- a/xsettings-kde.c ++++ b/xsettings-kde.c +@@ -157,6 +157,35 @@ int readBoolean (char *key, char * buffer, char *xsetting_key) { + } + + ++int readDPI(char *buffer) ++{ ++ const char *key = "forceFontDPI"; ++ const char *xsetting_key = "Xft/DPI"; ++ ++ if (strncmp (buffer, key, strlen(key)) == 0) { ++ int tmp_int; ++ char search_string[1024]; ++ ++ sprintf(search_string, "%s=%%d", key); ++ if (sscanf (buffer, search_string, &tmp_int) >= 0) { ++ int i; ++ /* GTK+ expects this as 1024 * dots/inch */ ++ tmp_int *= 1024; ++ ++ for (i = 0 ; i < max_display ; i++) { ++ if (tmp_int) { ++ xsettings_manager_set_int (managers[i], xsetting_key, tmp_int); ++ } else { ++ xsettings_manager_delete_setting (managers[i], xsetting_key); ++ } ++ } ++ return 1; ++ } ++ } ++ return 0; ++} ++ ++ + void readConfig () { + FILE *file = NULL; + char *buffer = NULL; +@@ -319,7 +348,7 @@ void readConfig () { + sscanf(buffer,"widgetStyle=%s", style); + + } +- notify |= readInt("forceFontDPI", buffer, "Xft/DPI", 1024); ++ notify |= readDPI(buffer); + + break; + case Toolbar: +-- --- xsettings-kde-0.9.orig/debian/patches/series +++ xsettings-kde-0.9/debian/patches/series @@ -0,0 +1 @@ +0001-drop-DPI-settings-if-they-re-not-set-in-KDE.patch