[gnome-panel/gtk3] Removed gdk_xid_table_lookup_for_display()



commit 620e660f892b981235e9e4a639fd9789ea91cdc4
Author: Germán Póo-Caamaño <gpoo gnome org>
Date:   Thu Dec 30 05:11:50 2010 -0800

    Removed gdk_xid_table_lookup_for_display()
    
    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() which was already in
    use.  Hence, if the returned value is != NULL then is a window
    and we can ask to the user to kill the application.
    
    
    
    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 6f663b2..60535fd 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_xid_table_lookup_for_display (gdk_x11_lookup_xdisplay (event->display), window))
+		if (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]