public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+/files: gtk+-2.24.5-background-repaint.patch
@ 2011-06-18 15:44 Pacho Ramos (pacho)
  0 siblings, 0 replies; only message in thread
From: Pacho Ramos (pacho) @ 2011-06-18 15:44 UTC (permalink / raw
  To: gentoo-commits

pacho       11/06/18 15:44:14

  Added:                gtk+-2.24.5-background-repaint.patch
  Log:
  Revert commit that is causing major gnome-panel problems, bug #372147. Remove broken version.
  
  (Portage version: 2.1.9.50/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  x11-libs/gtk+/files/gtk+-2.24.5-background-repaint.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/files/gtk+-2.24.5-background-repaint.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+/files/gtk+-2.24.5-background-repaint.patch?rev=1.1&content-type=text/plain

Index: gtk+-2.24.5-background-repaint.patch
===================================================================
From 254b9a4c540e3dff1dcd17db2ceea6a9fa5df973 Mon Sep 17 00:00:00 2001
From: Benjamin Otte <otte@redhat.com>
Date: Thu, 09 Jun 2011 04:29:45 +0000
Subject: gdk: Make background changes queue a repaint

For client-side windows, we need to queue a repaint when the background
changes. For native windows, the windowing system does take care of it,
but client-side windows are our own, so we gotta do it manually.

https://bugzilla.gnome.org/show_bug.cgi?id=652102
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index f058570..10d83ab 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -8004,11 +8004,15 @@ gdk_window_set_background (GdkWindow      *window,
     }
 
   if (!GDK_WINDOW_DESTROYED (window) &&
-      gdk_window_has_impl (private) &&
       !private->input_only)
     {
-      impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
-      impl_iface->set_background (window, &private->bg_color);
+      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);
     }
 }
 
@@ -8077,11 +8081,15 @@ 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)
     {
-      impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
-      impl_iface->set_back_pixmap (window, private->bg_pixmap);
+      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);
     }
 }
 
--
cgit v0.9






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-18 15:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-18 15:44 [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+/files: gtk+-2.24.5-background-repaint.patch Pacho Ramos (pacho)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox