aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-gtk-utils.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-11-26 11:15:16 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-11-26 11:15:16 +0800
commit9fa1e996bc1a3249c0d5ee59752f7117a490d40d (patch)
tree017efb55cfe2db3440216a48abb8fff0e47be5f8 /e-util/e-gtk-utils.c
parent1dc9b4348460ee9771db8eef729bc6396ea646d7 (diff)
downloadgsoc2013-evolution-9fa1e996bc1a3249c0d5ee59752f7117a490d40d.tar.gz
gsoc2013-evolution-9fa1e996bc1a3249c0d5ee59752f7117a490d40d.tar.zst
gsoc2013-evolution-9fa1e996bc1a3249c0d5ee59752f7117a490d40d.zip
e-dialog-utils.c Conditionalize X11 specific code on GDK_WINDOWING_X11.
2005-11-26 Tor Lillqvist <tml@novell.com> * e-dialog-utils.c * e-gtk-utils.c: Conditionalize X11 specific code on GDK_WINDOWING_X11. svn path=/trunk/; revision=30683
Diffstat (limited to 'e-util/e-gtk-utils.c')
-rw-r--r--e-util/e-gtk-utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/e-util/e-gtk-utils.c b/e-util/e-gtk-utils.c
index 99df6fe923..d8282d2c1a 100644
--- a/e-util/e-gtk-utils.c
+++ b/e-util/e-gtk-utils.c
@@ -35,9 +35,11 @@
#include <gtk/gtkhbox.h>
#include <gtk/gtkalignment.h>
+#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#include <X11/Xlib.h>
+#endif
#include "e-gtk-utils.h"
@@ -137,6 +139,7 @@ e_signal_connect_full_while_alive (void *instance,
}
+#ifdef GDK_WINDOWING_X11
/* BackingStore support. */
static void
@@ -156,6 +159,8 @@ widget_realize_callback_for_backing_store (GtkWidget *widget,
CWBackingStore, &attributes);
}
+#endif
+
/**
* e_make_widget_backing_stored:
* @widget: A GtkWidget
@@ -171,7 +176,9 @@ widget_realize_callback_for_backing_store (GtkWidget *widget,
void
e_make_widget_backing_stored (GtkWidget *widget)
{
+#ifdef GDK_WINDOWING_X11
g_signal_connect (widget, "realize", G_CALLBACK (widget_realize_callback_for_backing_store), NULL);
+#endif
}