[gnome-panel/gtk3] Fix gdk_xid_table_lookup_for_display deprecated.



commit a2a50ed8e0a5a3c205ec2055784914e541ffa629
Author: Germán Póo-Caamaño <gpoo gnome org>
Date:   Thu Dec 30 13:51:24 2010 -0800

    Fix gdk_xid_table_lookup_for_display deprecated.
    
    According to the documentatiom, GTK+ only stores windows
    in its X id table nowadays and the recomendation is to use
    gdk_x11_window_lookup_for_display() instead of
    gdk_xid_table_lookup_for_display().
    
    This fixes commit #620e660f89
    
    Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>

 gnome-panel/panel-force-quit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-force-quit.c b/gnome-panel/panel-force-quit.c
index 60535fd..39dda58 100644
--- a/gnome-panel/panel-force-quit.c
+++ b/gnome-panel/panel-force-quit.c
@@ -251,7 +251,7 @@ handle_button_press_event (GtkWidget *popup,
 	window = find_managed_window (event->display, event->subwindow);
 
 	if (window != None) {
-		if (gdk_x11_lookup_xdisplay (event->display), window)
+		if (!gdk_x11_window_lookup_for_display (gdk_x11_lookup_xdisplay (event->display), window))
 			kill_window_question ((gpointer) window);
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]