summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2010-12-22 15:46:10 +0100
committerKristian Rietveld <kris@gtk.org>2010-12-22 15:46:10 +0100
commit358311b063d01bcf5b1a76d75fd44533359dfed2 (patch)
tree8b3a353ea748958504e1ce4d68073d634ce4037b
parentf97d67c60a969c5a542a2fb35e33d013918da563 (diff)
downloadgtk+-358311b063d01bcf5b1a76d75fd44533359dfed2.tar.gz
gtkclipboard-quartz: use accessors and add missing include
-rw-r--r--gtk/gtkclipboard-quartz.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkclipboard-quartz.c b/gtk/gtkclipboard-quartz.c
index f433070ce1..a77d44379f 100644
--- a/gtk/gtkclipboard-quartz.c
+++ b/gtk/gtkclipboard-quartz.c
@@ -31,6 +31,7 @@
#include "gtkmarshalers.h"
#include "gtkintl.h"
#include "gtktextbuffer.h"
+#include "gtkselectionprivate.h"
#include "gtkquartz.h"
@@ -252,7 +253,7 @@ gtk_clipboard_get_for_display (GdkDisplay *display,
GdkAtom selection)
{
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
- g_return_val_if_fail (!display->closed, NULL);
+ g_return_val_if_fail (!gdk_display_is_closed (display), NULL);
return clipboard_peek (display, selection, FALSE);
}