[libwnck/gtk3] Fixed build replacing deprecated functions (#638201)



commit 27e7804ee3021e1e8780a439cf22c24e785ae28e
Author: David Ronis <david ronis mcgill ca>
Date:   Wed Dec 29 16:22:56 2010 -0800

    Fixed build replacing deprecated functions (#638201)
    
    gdk_text_property_to_utf8_list and gdk_xid_table_lookup
    have been deprecated.
    
    Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>

 libwnck/xutils.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libwnck/xutils.c b/libwnck/xutils.c
index 39c87e2..82547f6 100644
--- a/libwnck/xutils.c
+++ b/libwnck/xutils.c
@@ -241,7 +241,8 @@ text_property_to_utf8 (const XTextProperty *prop)
   
   list = NULL;
 
-  count = gdk_text_property_to_utf8_list (gdk_x11_xatom_to_atom (prop->encoding),
+  count = gdk_text_property_to_utf8_list_for_display (gdk_display_get_default(),
+                                          gdk_x11_xatom_to_atom (prop->encoding),
                                           prop->format,
                                           prop->value,
                                           prop->nitems,
@@ -783,7 +784,8 @@ _wnck_deiconify (Window xwindow)
    */
   GdkWindow *gdkwindow;
 
-  gdkwindow = gdk_xid_table_lookup (xwindow);
+  gdkwindow = gdk_x11_window_lookup_for_display (gdk_display_get_default (),
+                                                 xwindow);
 
   _wnck_error_trap_push ();
   if (gdkwindow)
@@ -1298,7 +1300,8 @@ _wnck_select_input (Window xwindow,
 {
   GdkWindow *gdkwindow;
   
-  gdkwindow = gdk_xid_table_lookup (xwindow);
+  gdkwindow = gdk_x11_window_lookup_for_display (gdk_display_get_default (),
+                                                 xwindow);
 
   _wnck_error_trap_push ();
   if (gdkwindow)



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