[gtk+/rendering-cleanup: 90/140] gtk: Remove special code for detecting pixmaps as event targets



commit ddbf6ea349aa927d712b6f95e02bc8e3524c157e
Author: Benjamin Otte <otte redhat com>
Date:   Fri Aug 27 17:00:14 2010 +0200

    gtk: Remove special code for detecting pixmaps as event targets

 gtk/gtkwidget.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index b8a1d95..2e2d78f 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4683,13 +4683,6 @@ gtk_widget_send_expose (GtkWidget *widget,
 static gboolean
 event_window_is_still_viewable (GdkEvent *event)
 {
-  /* Some programs, such as gnome-theme-manager, fake widgets
-   * into exposing onto a pixmap by sending expose events with
-   * event->window pointing to a pixmap
-   */
-  if (GDK_IS_PIXMAP (event->any.window))
-    return event->type == GDK_EXPOSE;
-  
   /* Check that we think the event's window is viewable before
    * delivering the event, to prevent suprises. We do this here
    * at the last moment, since the event may have been queued



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]