[gtk+/gtk-2-24] x11: #ifdef USE_SHM function where it belongs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] x11: #ifdef USE_SHM function where it belongs
- Date: Thu, 21 Apr 2011 23:08:23 +0000 (UTC)
commit 65c1419742d4378ef48303c45e74f633ab155b7f
Author: Benjamin Otte <otte redhat com>
Date: Fri Apr 22 00:46:20 2011 +0200
x11: #ifdef USE_SHM function where it belongs
Otherwise, we end up with an unused function warning without SHM
gdk/x11/gdkdrawable-x11.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdrawable-x11.c b/gdk/x11/gdkdrawable-x11.c
index 4703cda..7cb3569 100644
--- a/gdk/x11/gdkdrawable-x11.c
+++ b/gdk/x11/gdkdrawable-x11.c
@@ -1362,6 +1362,7 @@ shm_pixmap_info_destroy (gpointer data)
}
+#ifdef USE_SHM
/* Returns FALSE if we can't get a shm pixmap */
static gboolean
get_shm_pixmap_for_image (Display *xdisplay,
@@ -1408,7 +1409,6 @@ get_shm_pixmap_for_image (Display *xdisplay,
return TRUE;
}
-#ifdef USE_SHM
/* Returns FALSE if drawing with ShmPixmaps is not possible */
static gboolean
draw_with_pixmaps (GdkDrawable *drawable,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]