[arch-commits] Commit in xfce4-settings/trunk (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Oct 21 04:01:11 UTC 2012


    Date: Sunday, October 21, 2012 @ 00:01:11
  Author: foutrelis
Revision: 169427

upgpkg: xfce4-settings 4.10.0-3

Add patches for upstream bugs 9272 and 9273. (FS#31806)

Added:
  xfce4-settings/trunk/xfce4-settings-4.10.0-check-service-name-of-nameownerchanged.patch
  xfce4-settings/trunk/xfce4-settings-4.10.0-fix-gtk3-theme-detection.patch
Modified:
  xfce4-settings/trunk/PKGBUILD

--------------------------------------------------------------------+
 PKGBUILD                                                           |   12 ++
 xfce4-settings-4.10.0-check-service-name-of-nameownerchanged.patch |   55 ++++++++++
 xfce4-settings-4.10.0-fix-gtk3-theme-detection.patch               |   22 ++++
 3 files changed, 88 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-10-21 00:46:02 UTC (rev 169426)
+++ PKGBUILD	2012-10-21 04:01:11 UTC (rev 169427)
@@ -5,7 +5,7 @@
 
 pkgname=xfce4-settings
 pkgver=4.10.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Settings manager for xfce"
 arch=('i686' 'x86_64')
 url="http://www.xfce.org/"
@@ -16,8 +16,12 @@
 makedepends=('intltool')
 optdepends=('libcanberra: for sound control')
 source=(http://archive.xfce.org/src/xfce/$pkgname/4.10/$pkgname-$pkgver.tar.bz2
+        xfce4-settings-4.10.0-fix-gtk3-theme-detection.patch
+        xfce4-settings-4.10.0-check-service-name-of-nameownerchanged.patch
         xfce4-settings-xml-4.10.0.patch)
 sha256sums=('0843f09ba9673f1d1b5df8dce4a17b63c183a9ba3be75fb6ef99a67fc8c1f77e'
+            '28482a3410d587fe051b84080ab5366b4fbe2af8684ee46384ff899b73d3f349'
+            '5be974f8fba6ba9dc14e136762cf752fe46eac99f71511d77d910610b5401244'
             '78e68ef2cbf19760707ba24f3d57dd59fbf40a540d50d20e7cc62ba02196aaaa')
 
 build() {
@@ -27,6 +31,12 @@
   # (taken from Fedora)
   patch -Np1 -i "$srcdir/xfce4-settings-xml-4.10.0.patch"
 
+  # https://bugzilla.xfce.org/show_bug.cgi?id=9272
+  patch -Np1 -i "$srcdir/xfce4-settings-4.10.0-fix-gtk3-theme-detection.patch"
+
+  # https://bugzilla.xfce.org/show_bug.cgi?id=9273
+  patch -Np1 -i "$srcdir/xfce4-settings-4.10.0-check-service-name-of-nameownerchanged.patch"
+
   ./configure \
     --prefix=/usr \
     --sysconfdir=/etc \

Added: xfce4-settings-4.10.0-check-service-name-of-nameownerchanged.patch
===================================================================
--- xfce4-settings-4.10.0-check-service-name-of-nameownerchanged.patch	                        (rev 0)
+++ xfce4-settings-4.10.0-check-service-name-of-nameownerchanged.patch	2012-10-21 04:01:11 UTC (rev 169427)
@@ -0,0 +1,55 @@
+From 2ec636049b95d0c51286253813b5b1a074472afc Mon Sep 17 00:00:00 2001
+From: Lionel Le Folgoc <lionel at lefolgoc.net>
+Date: Sun, 09 Sep 2012 09:50:19 +0000
+Subject: Xfsettingsd: Check service name of NameOwnerChanged (bug #9273).
+
+In some conditions, the dbus spawn of xfconf leads to the
+shutdown of xfsettingsd because it "thinks" another instance
+is taking over... After some debugging I found that it
+receives a NameOwnerChanged signal describing the launch
+of Xfconf (name=org.xfce.Xfconf, old=, new=:1.11 for example).
+
+(cherry picked from commit c17fe35e6f2ff673bab102e736a327fa7bcc1d73)
+---
+diff --git a/xfsettingsd/main.c b/xfsettingsd/main.c
+index 0f3a68d..55c4183 100644
+--- a/xfsettingsd/main.c
++++ b/xfsettingsd/main.c
+@@ -93,15 +93,29 @@ signal_handler (gint signum,
+ 
+ 
+ static DBusHandlerResult
+-dbus_connection_filter_func (DBusConnection     *connection,
+-                             DBusMessage        *message,
+-                             void               *user_data)
++dbus_connection_filter_func (DBusConnection *connection,
++                             DBusMessage    *message,
++                             void           *user_data)
+ {
++    gchar *name, *old, *new;
++
+     if (dbus_message_is_signal (message, DBUS_INTERFACE_DBUS, "NameOwnerChanged"))
+     {
+-        g_printerr (G_LOG_DOMAIN ": %s\n", "Another instance took over. Leaving...");
+-        gtk_main_quit ();
+-        return DBUS_HANDLER_RESULT_HANDLED;
++        /* double check if it is really org.xfce.SettingsDaemon
++         * being replaced, see bug 9273 */
++        if (dbus_message_get_args (message, NULL,
++                                   DBUS_TYPE_STRING, &name,
++                                   DBUS_TYPE_STRING, &old,
++                                   DBUS_TYPE_STRING, &new,
++                                   DBUS_TYPE_INVALID))
++        {
++            if (g_strcmp0 (name, XFSETTINGS_DBUS_NAME) == 0)
++            {
++                g_printerr (G_LOG_DOMAIN ": %s\n", "Another instance took over. Leaving...");
++                gtk_main_quit ();
++                return DBUS_HANDLER_RESULT_HANDLED;
++            }
++        }
+     }
+ 
+     return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
+--
+cgit v0.9.0.3

Added: xfce4-settings-4.10.0-fix-gtk3-theme-detection.patch
===================================================================
--- xfce4-settings-4.10.0-fix-gtk3-theme-detection.patch	                        (rev 0)
+++ xfce4-settings-4.10.0-fix-gtk3-theme-detection.patch	2012-10-21 04:01:11 UTC (rev 169427)
@@ -0,0 +1,22 @@
+From 8032dd77047329a93edd4c4a8b686ffc36d2f7a7 Mon Sep 17 00:00:00 2001
+From: Lionel Le Folgoc <lionel at lefolgoc.net>
+Date: Sun, 09 Sep 2012 09:41:18 +0000
+Subject: Appearance: Fix gtk3 theme detection in install script (bug #9272).
+
+(cherry picked from commit e3c6db6f57e72cdbdf0e293bba7d6ca650d7521b)
+---
+diff --git a/dialogs/appearance-settings/appearance-install-theme b/dialogs/appearance-settings/appearance-install-theme
+index 13f61ae..6dc1e17 100755
+--- a/dialogs/appearance-settings/appearance-install-theme
++++ b/dialogs/appearance-settings/appearance-install-theme
+@@ -140,7 +140,7 @@ if test "$retval" -eq 0; then
+     detectthemes "gtk-2.0/gtkrc"
+ 
+     # install gtk-3.0 themes
+-    detectthemes "gtk-3.0/gtkrc"
++    detectthemes "gtk-3.0/gtk.css"
+ 
+     # install xfwm4 themes
+     detectthemes "xfwm4/themerc"
+--
+cgit v0.9.0.3




More information about the arch-commits mailing list