1
#Upstream: https://sourceforge.net/tracker/?func=detail&aid=3103279&group_id=180858&atid=894871
2
Index: lxsession-0.4.4/lxsession-logout/lxsession-logout.c
3
===================================================================
4
--- lxsession-0.4.4.orig/lxsession-logout/lxsession-logout.c 2010-10-31 14:49:30.000000000 +0100
5
+++ lxsession-0.4.4/lxsession-logout/lxsession-logout.c 2010-10-31 15:34:31.000000000 +0100
7
/* Handler for "expose_event" on background. */
8
gboolean expose_event(GtkWidget * widget, GdkEventExpose * event, GdkPixbuf * pixbuf)
11
+#if GTK_CHECK_VERSION(2,22,0)
12
+ GtkAllocation allocation;
13
+ gtk_widget_get_allocation(widget, &allocation);
18
/* Copy the appropriate rectangle of the root window pixmap to the drawing area.
19
* All drawing areas are immediate children of the toplevel window, so the allocation yields the source coordinates directly. */
21
- widget->window, /* Drawable to render to */
22
+#if GTK_CHECK_VERSION(2,14,0)
23
+ gtk_widget_get_window(widget), /* Drawable to render to */
25
+ widget->window, /* Drawable to render to */
27
NULL, /* GC for clipping */
28
pixbuf, /* Source pixbuf */
29
+#if GTK_CHECK_VERSION(2,22,0)
30
+ allocation.x, allocation.y,
32
widget->allocation.x, widget->allocation.y, /* Source coordinates */
34
0, 0, /* Destination coordinates */
35
+#if GTK_CHECK_VERSION(2,22,0)
36
+ allocation.width, allocation.height,
38
widget->allocation.width, widget->allocation.height,
40
GDK_RGB_DITHER_NORMAL, /* Dither type */
41
0, 0); /* Dither offsets */