bgo#629299 - Use gdk_display_get_default instead of GDK_DISPLAY

GDK_DISPLAY() was deprecated in GTK+ 2.22 and removed in GTK+ 3.
This commit is contained in:
Kalev Lember 2010-09-10 19:03:09 +03:00 committed by Federico Mena Quintero
parent bfb92ffe9b
commit cd8a0ecbe2
4 changed files with 9 additions and 6 deletions

View file

@ -35,7 +35,7 @@ gboolean debug = FALSE;
static gboolean
have_tray (void)
{
Screen *xscreen = DefaultScreenOfDisplay (gdk_display);
Screen *xscreen = DefaultScreenOfDisplay (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
Atom selection_atom;
char *selection_atom_name;