diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-12-10 23:14:43 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-12-21 12:06:58 -0500 |
commit | dfe6ba932ca798c53121f90b7d696b5d2231a179 (patch) | |
tree | d6285f17cb56a7a3bb8f963a66a3640a7db9ed1b /gdk/x11/gdkselection-x11.c | |
parent | ea96e5e16f964c71f2ac3fcf5237542e4776221c (diff) | |
download | gtk+-dfe6ba932ca798c53121f90b7d696b5d2231a179.tar.gz |
Don't access GdkDisplay fields directly
Use accessors instead.
Diffstat (limited to 'gdk/x11/gdkselection-x11.c')
-rw-r--r-- | gdk/x11/gdkselection-x11.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdk/x11/gdkselection-x11.c b/gdk/x11/gdkselection-x11.c index 00390aa34f..74d17c4f4d 100644 --- a/gdk/x11/gdkselection-x11.c +++ b/gdk/x11/gdkselection-x11.c @@ -138,7 +138,7 @@ gdk_selection_owner_set_for_display (GdkDisplay *display, g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE); g_return_val_if_fail (selection != GDK_NONE, FALSE); - if (display->closed) + if (gdk_display_is_closed (display)) return FALSE; if (owner) @@ -211,8 +211,8 @@ gdk_selection_owner_get_for_display (GdkDisplay *display, g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); g_return_val_if_fail (selection != GDK_NONE, NULL); - - if (display->closed) + + if (gdk_display_is_closed (display)) return NULL; xwindow = XGetSelectionOwner (GDK_DISPLAY_XDISPLAY (display), @@ -458,7 +458,7 @@ gdk_text_property_to_text_list_for_display (GdkDisplay *display, if (list) *list = NULL; - if (display->closed) + if (gdk_display_is_closed (display)) return 0; property.value = (guchar *)text; @@ -709,7 +709,7 @@ gdk_string_to_compound_text_for_display (GdkDisplay *display, g_return_val_if_fail (GDK_IS_DISPLAY (display), 0); - if (display->closed) + if (gdk_display_is_closed (display)) res = XLocaleNotSupported; else res = XmbTextListToTextProperty (GDK_DISPLAY_XDISPLAY (display), |