[gtk+] wayland: Fix implementation of gdk_atom_name



commit f791687d3bfcca999f69024f2b003bf235aa4a5c
Author: Rob Bradford <rob linux intel com>
Date:   Thu Jan 12 13:33:58 2012 +0000

    wayland: Fix implementation of gdk_atom_name

 gdk/wayland/gdkdisplaymanager-wayland.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/gdkdisplaymanager-wayland.c b/gdk/wayland/gdkdisplaymanager-wayland.c
index f5069cf..7bc3e02 100644
--- a/gdk/wayland/gdkdisplaymanager-wayland.c
+++ b/gdk/wayland/gdkdisplaymanager-wayland.c
@@ -135,8 +135,8 @@ gdk_wayland_display_manager_get_atom_name (GdkDisplayManager *manager_in,
 
   while (g_hash_table_iter_next (&iter, &key, &value))
     {
-      if (GDK_POINTER_TO_ATOM (key) == atom)
-        return g_strdup (value);
+      if (GDK_POINTER_TO_ATOM (value) == atom)
+        return g_strdup (key);
     }
 
   return NULL;



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