debian/0000775000000000000000000000000011756541166007204 5ustar debian/copyright0000664000000000000000000000136511714570530011133 0ustar 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 , (C) 2011 Philip Muškovac and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/patches/0000775000000000000000000000000011756541201010621 5ustar debian/patches/kubuntu_kde4_dir.patch0000664000000000000000000000156411715203403015104 0ustar Description: Always use ~/.kde instead of ~/.kde4. Forwarded: not-needed Origin: vendor, http://pkgs.fedoraproject.org/gitweb/?p=xsettings-kde.git;a=blob;f=xsettings-kde-0.9-kde4.patch;hb=975b736cc73de09ec3004e65e21a1940b8a947e0 Last-Update: 2012-02-10 diff -up xsettings-kde-0.9/xsettings-kde.c.kde4 xsettings-kde-0.9/xsettings-kde.c --- xsettings-kde-0.9/xsettings-kde.c.kde4 2008-09-29 12:44:27.000000000 -0500 +++ xsettings-kde-0.9/xsettings-kde.c 2008-12-30 23:34:27.000000000 -0600 @@ -232,7 +232,7 @@ void readConfig () { user_file = 1; if ((password = getpwuid (geteuid()))) { - sprintf(filename, "%s/%s/share/config/%s",password->pw_dir, is_kde4 ? ".kde4" : ".kde", file_name[file_index]); + sprintf(filename, "%s/%s/share/config/%s",password->pw_dir, ".kde" , file_name[file_index]); if (access (filename, F_OK) == 0) { file = fopen (filename, "r"); debian/patches/series0000664000000000000000000000010611756535522012044 0ustar kubuntu_gtktheme.patch kubuntu_kde4_dir.patch kubuntu_busy_wait.patch debian/patches/kubuntu_gtktheme.patch0000664000000000000000000000654611716424136015245 0ustar Description: Rewrite Net/ThemeName handling: set it based on .gtkrc-2.0-kde4 (kcm-gtk) Forwarded: not-needed Origin: vendor, http://pkgs.fedoraproject.org/gitweb/?p=xsettings-kde.git;a=blob;f=xsettings-kde-0.12.3-gtktheme.patch;hb=18364b23f0cf846a82b8eece5916e8f1d6336972 Author: Kevin Kofler Last-Update: 2012-02-10 Index: xsettings-kde-0.12.3/xsettings-kde.c =================================================================== --- xsettings-kde-0.12.3.orig/xsettings-kde.c 2011-10-07 01:09:07.000000000 +0200 +++ xsettings-kde-0.12.3/xsettings-kde.c 2012-02-14 10:06:10.293328893 +0100 @@ -239,15 +239,12 @@ char filename[1024]; char kdeprefix[1024]; char *prefix; - char color[1024]; char style[1024]; - char themefilename[1024]; - struct passwd *password; + struct passwd *password = NULL; int i; int user_file; int file_index; - color[0]= '\0'; kdeprefix[0]= '\0'; filename[0]= '\0'; style[0]='\0'; @@ -386,16 +383,6 @@ } notify = 1; } - if (strncmp(buffer,"widgetStyle=",12) == 0) { - - /* found style */ - sscanf(buffer,"widgetStyle=%s", style); - - } - if (strncmp(buffer,"ColorScheme=",12) == 0) { - strcpy(color, buffer+12); - color[strlen(color)-1]='\0'; - } notify |= readDPI(buffer); break; @@ -451,59 +438,32 @@ } while (user_file == 0); } - if (buffer) { - free (buffer); - } + /* look for style set by kcm-gtk, enforce it through Net/ThemeName so GTK+ 3 also picks it up */ + if (password) { + sprintf (filename, "%s/.gtkrc-2.0-kde4", password->pw_dir); + file = fopen (filename, "r"); - if ((style[0] == '\0' || (!is_kde4 && strcmp(style, "ia_ora") == 0) || (is_kde4 && strcmp(style, "iaora-qt") == 0) || (is_kde4 && strcmp(style, "iaorakde") == 0)) && strncmp("Ia Ora ", color, 7) == 0) - { - strcpy(style, color); - if (!is_kde4) { - style[strlen(style)-6] = '\0'; + if (file) { + while ((read = getline (&buffer, &len, file)) != -1) { + if (strncmp (buffer, "gtk-theme-name=", 15) == 0) { + sscanf (buffer, "gtk-theme-name=\"%1023[^\"]\"", style); + } + } + + fclose (file); + file = NULL; } } - - if (style[0]) { - int gtkrc_access = 1; - sprintf(themefilename, "/usr/share/themes/%s/gtk-2.0/gtkrc", style); - if (password) { - char gtkrc[1024]; - sprintf(gtkrc,"%s/.gtkrc-2.0", password->pw_dir); - gtkrc_access = access (gtkrc, F_OK); - /* if not .gtkrc-2.0, try KDE variant */ - if (gtkrc_access) { - char *gtkrc_env; - char *gtkrc_file; - - gtkrc_env = getenv ("GTK2_RC_FILES"); - gtkrc_file = NULL; + if (buffer) { + free (buffer); + } - if (gtkrc_env) { - do { - if (gtkrc_file == NULL) { - gtkrc_file = strtok (gtkrc_env, ":"); - } - else { - gtkrc_file = strtok (NULL, ":"); - } - if (gtkrc_file != NULL) { - if ((gtkrc_access = access (gtkrc_file, F_OK)) == 0) { - break; - } - } - } while (gtkrc_file != NULL ); - } - } + if (style[0]) { + for (i = 0 ; i < max_display ; i++) { + xsettings_manager_set_string (managers[i], "Net/ThemeName", style); } - - /* do not set theme name if .gtkrc is being used */ - if (gtkrc_access && (access (themefilename, F_OK) == 0 )) { - for (i = 0 ; i < max_display ; i++) { - xsettings_manager_set_string (managers[i], "Net/ThemeName", style); - } notify = 1; - } } debian/patches/kubuntu_busy_wait.patch0000664000000000000000000000235411756536661015447 0ustar From: Harald Sitter Subject: Remove pointless sleep() The IM support patch from [1], imported into Mageia in [2] adds a conditional sleep() call when the infinite loop runs into an empty event queue which is bound to happen quite a few times. . This introduces pointless code and pointless wake ups as the used XNextEvent function blocks on an empty queue anyway [3], thus rendering the manual sleep() call superfluous. . [1] https://bugzilla.redhat.com/show_bug.cgi?id=727822 [2] http://svnweb.mageia.org/soft?view=revision&revision=2011 [3] http://tronche.com/gui/x/xlib/event-handling/manipulating-event-queue/XNextEvent.html Index: xsettings-kde-0.12.3/xsettings-kde.c =================================================================== --- xsettings-kde-0.12.3.orig/xsettings-kde.c 2012-05-22 00:01:21.000000000 +0200 +++ xsettings-kde-0.12.3/xsettings-kde.c 2012-05-22 00:02:25.209293378 +0200 @@ -529,11 +529,7 @@ int i; while (1) { - if (!XPending(xev->display)) { - sleep(2); - continue; - } - XNextEvent (xev->display, &xevent); + XNextEvent (xev->display, &xevent); for (i = 0 ; i < max_display ; i++) { if (xsettings_manager_process_event (managers[i], &xevent)) debian/control0000664000000000000000000000125411714573252010604 0ustar Source: xsettings-kde Section: kde Priority: optional Maintainer: Kubuntu Developers XSBC-Original-Maintainer: Guido Günther Build-Depends: cdbs, debhelper (>= 8~), libfontconfig1-dev, libglib2.0-dev, libx11-dev, pkg-config, cdbs Standards-Version: 3.9.2 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. debian/docs0000664000000000000000000000000711714544153010045 0ustar README debian/changelog0000664000000000000000000000324311756541166011060 0ustar xsettings-kde (0.12.3-0ubuntu3) quantal; urgency=low * Add kubuntu_busy_wait.patch removing busy waiting for events, which is more elegantly hidden away in XNextEvent. This removes xsettings from powertop listing pretty much as it is not in fact only doing stuff when there is stuff to be done :) -- Harald Sitter Tue, 22 May 2012 00:15:56 +0200 xsettings-kde (0.12.3-0ubuntu2) precise; urgency=low * Fix kubuntu_gtktheme.patch (use of possibly uninitialzed pointer) -- Philip Muškovac Tue, 14 Feb 2012 09:53:35 +0100 xsettings-kde (0.12.3-0ubuntu1) precise; urgency=low [ Philip Muškovac ] * Update to upstream 0.12.3 release - drop 0001-drop-DPI-settings-if-they-re-not-set-in-KDE.patch, applied upstream * Add kubuntu_gtktheme.patch to enforce the GTK theme by Net/ThemeName for GTK3. Original patch from Kevin Kofler * Bump Standards version to 3.9.2, no changes needed * Use source format 3.0 (quilt) and drop build-dependency on quilt [ Felix Geyer ] * Add kubuntu_kde4_dir.patch so it always uses ~/.kde instead of ~/.kde4. Original patch from Fedora. * Add a watch file. -- Philip Muškovac Fri, 10 Feb 2012 19:56:30 +0100 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 debian/compat0000664000000000000000000000000211714572520010372 0ustar 8 debian/rules0000775000000000000000000000015511714572352010260 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/makefile.mk debian/install0000664000000000000000000000011011714544153010556 0ustar xsettings-kde usr/bin debian/xsettings-kde.desktop usr/share/autostart/ debian/source/0000775000000000000000000000000011714572021010470 5ustar debian/source/format0000664000000000000000000000001411714572021011676 0ustar 3.0 (quilt) debian/xsettings-kde.desktop0000664000000000000000000000025411714544153013362 0ustar [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 debian/watch0000664000000000000000000000022011715203403010207 0ustar version=3 http://distro.ibiblio.org/pub/linux/distributions/mageia/software/xsettings-kde/(\d[\d\.]+)/ \ xsettings-kde-(\d[\d\.]+)\.tar\.bz2