[Xfce4-commits] [xfce/thunar] 08/46: Remove usage of deprecated GDK_DISPLAY and gdk_display
noreply at xfce.org
noreply at xfce.org
Tue Aug 15 02:35:16 CEST 2017
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit 3b7c16e8444a91abbfb44bed3e928c81e4031f18
Author: Jonas Kümmerlin <rgcjonas at gmail.com>
Date: Wed Aug 5 17:06:10 2015 +0200
Remove usage of deprecated GDK_DISPLAY and gdk_display
We now use gdk_x11_get_default_xdisplay().
---
plugins/thunar-wallpaper/twp-provider.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/plugins/thunar-wallpaper/twp-provider.c b/plugins/thunar-wallpaper/twp-provider.c
index acd5438..b0b5ae1 100644
--- a/plugins/thunar-wallpaper/twp-provider.c
+++ b/plugins/thunar-wallpaper/twp-provider.c
@@ -182,9 +182,9 @@ twp_provider_get_file_actions (ThunarxMenuProvider *menu_provider,
}
g_snprintf(selection_name, 100, XFDESKTOP_SELECTION_FMT, xscreen);
- xfce_selection_atom = XInternAtom (gdk_display, selection_name, False);
+ xfce_selection_atom = XInternAtom (gdk_x11_get_default_xdisplay(), selection_name, False);
- if ((XGetSelectionOwner(GDK_DISPLAY(), xfce_selection_atom)))
+ if ((XGetSelectionOwner(gdk_x11_get_default_xdisplay(), xfce_selection_atom)))
{
desktop_type = DESKTOP_TYPE_XFCE;
}
@@ -192,8 +192,8 @@ twp_provider_get_file_actions (ThunarxMenuProvider *menu_provider,
{
/* FIXME: This is wrong, nautilus WINDOW_ID is not a selection */
g_snprintf(selection_name, 100, NAUTILUS_SELECTION_FMT);
- nautilus_selection_atom = XInternAtom (gdk_display, selection_name, False);
- if((XGetSelectionOwner(GDK_DISPLAY(), nautilus_selection_atom)))
+ nautilus_selection_atom = XInternAtom (gdk_x11_get_default_xdisplay(), selection_name, False);
+ if((XGetSelectionOwner(gdk_x11_get_default_xdisplay(), nautilus_selection_atom)))
{
if (_has_gconftool)
desktop_type = DESKTOP_TYPE_NAUTILUS;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list