r28933 - in /desktop/unstable/gtk+2.0/debian: changelog patches/066_Revert-gdk-Make-background-changes-queue-a-repaint.patch patches/series

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Tue Jul 19 17:42:14 UTC 2011


Author: biebl
Date: Tue Jul 19 17:42:14 2011
New Revision: 28933

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=28933
Log:
Revert "gdk: Make background changes queue a repaint" which causes
excessive CPU usage in gnome-panel. Closes: #633864

Added:
    desktop/unstable/gtk+2.0/debian/patches/066_Revert-gdk-Make-background-changes-queue-a-repaint.patch
Modified:
    desktop/unstable/gtk+2.0/debian/changelog
    desktop/unstable/gtk+2.0/debian/patches/series

Modified: desktop/unstable/gtk+2.0/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B2.0/debian/changelog?rev=28933&op=diff
==============================================================================
--- desktop/unstable/gtk+2.0/debian/changelog [utf-8] (original)
+++ desktop/unstable/gtk+2.0/debian/changelog [utf-8] Tue Jul 19 17:42:14 2011
@@ -1,3 +1,10 @@
+gtk+2.0 (2.24.5-3) UNRELEASED; urgency=low
+
+  * Revert "gdk: Make background changes queue a repaint" which causes
+    excessive CPU usage in gnome-panel. Closes: #633864
+
+ -- Michael Biebl <biebl at debian.org>  Thu, 14 Jul 2011 14:56:06 +0200
+
 gtk+2.0 (2.24.5-2) unstable; urgency=low
 
   * debian/control.in:

Added: desktop/unstable/gtk+2.0/debian/patches/066_Revert-gdk-Make-background-changes-queue-a-repaint.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B2.0/debian/patches/066_Revert-gdk-Make-background-changes-queue-a-repaint.patch?rev=28933&op=file
==============================================================================
--- desktop/unstable/gtk+2.0/debian/patches/066_Revert-gdk-Make-background-changes-queue-a-repaint.patch (added)
+++ desktop/unstable/gtk+2.0/debian/patches/066_Revert-gdk-Make-background-changes-queue-a-repaint.patch [utf-8] Tue Jul 19 17:42:14 2011
@@ -1,0 +1,55 @@
+From d7ac9cd71c43689672a9796e518ef3b970197bf2 Mon Sep 17 00:00:00 2001
+From: Matthias Clasen <mclasen at redhat.com>
+Date: Mon, 20 Jun 2011 08:10:36 -0400
+Subject: [PATCH] Revert "gdk: Make background changes queue a repaint"
+
+This reverts commit 254b9a4c540e3dff1dcd17db2ceea6a9fa5df973.
+---
+ gdk/gdkwindow.c |   20 ++++++--------------
+ 1 files changed, 6 insertions(+), 14 deletions(-)
+
+diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
+index 10d83ab..f058570 100644
+--- a/gdk/gdkwindow.c
++++ b/gdk/gdkwindow.c
+@@ -8004,15 +8004,11 @@ gdk_window_set_background (GdkWindow      *window,
+     }
+ 
+   if (!GDK_WINDOW_DESTROYED (window) &&
++      gdk_window_has_impl (private) &&
+       !private->input_only)
+     {
+-      if (gdk_window_has_impl (private))
+-        {
+-          impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
+-          impl_iface->set_background (window, &private->bg_color);
+-        }
+-      else
+-        gdk_window_invalidate_rect_full (window, NULL, TRUE, CLEAR_BG_ALL);
++      impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
++      impl_iface->set_background (window, &private->bg_color);
+     }
+ }
+ 
+@@ -8081,15 +8077,11 @@ gdk_window_set_back_pixmap (GdkWindow *window,
+     private->bg_pixmap = GDK_NO_BG;
+ 
+   if (!GDK_WINDOW_DESTROYED (window) &&
++      gdk_window_has_impl (private) &&
+       !private->input_only)
+     {
+-      if (gdk_window_has_impl (private))
+-        {
+-          impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
+-          impl_iface->set_back_pixmap (window, private->bg_pixmap);
+-        }
+-      else
+-        gdk_window_invalidate_rect_full (window, NULL, TRUE, CLEAR_BG_ALL);
++      impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
++      impl_iface->set_back_pixmap (window, private->bg_pixmap);
+     }
+ }
+ 
+-- 
+1.7.5.4
+

Modified: desktop/unstable/gtk+2.0/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B2.0/debian/patches/series?rev=28933&op=diff
==============================================================================
--- desktop/unstable/gtk+2.0/debian/patches/series [utf-8] (original)
+++ desktop/unstable/gtk+2.0/debian/patches/series [utf-8] Tue Jul 19 17:42:14 2011
@@ -13,3 +13,4 @@
 061_use_pdf_as_default_printing_standard.patch
 064_gir_build_workaround.patch
 065_tracker-0-10.patch
+066_Revert-gdk-Make-background-changes-queue-a-repaint.patch




More information about the pkg-gnome-commits mailing list