[gtk+/gdk-backend-quartz: 22/29] Implement atom-related vfuncs for quartz



commit 144925c5fdcc1bb1f35ba25975d7e0e0a53698fc
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 17 12:51:38 2010 -0500

    Implement atom-related vfuncs for quartz

 gdk/quartz/gdkdisplaymanager-quartz.c |    2 ++
 gdk/quartz/gdkprivate-quartz.h        |    6 ++++++
 gdk/quartz/gdkproperty-quartz.c       |   21 ++++++++-------------
 3 files changed, 16 insertions(+), 13 deletions(-)
---
diff --git a/gdk/quartz/gdkdisplaymanager-quartz.c b/gdk/quartz/gdkdisplaymanager-quartz.c
index 2df3c7c..54c361a 100644
--- a/gdk/quartz/gdkdisplaymanager-quartz.c
+++ b/gdk/quartz/gdkdisplaymanager-quartz.c
@@ -100,6 +100,8 @@ gdk_display_manager_quartz_class_init (GdkDisplayManagerQuartzClass *class)
   manager_class->list_displays = gdk_display_manager_quartz_list_displays;
   manager_class->set_default_display = gdk_display_manager_quartz_set_default_display;
   manager_class->get_default_display = gdk_display_manager_quartz_get_default_display;
+  manager_class->atom_intern = _gdk_quartz_display_manager_atom_intern;
+  manager_class->get_atom_name = _gdk_quartz_display_manager_get_atom_name;
 }
 
 void
diff --git a/gdk/quartz/gdkprivate-quartz.h b/gdk/quartz/gdkprivate-quartz.h
index cd83030..b32a578 100644
--- a/gdk/quartz/gdkprivate-quartz.h
+++ b/gdk/quartz/gdkprivate-quartz.h
@@ -236,5 +236,11 @@ gboolean    _gdk_quartz_screen_get_setting              (GdkScreen   *screen,
 
 void _gdk_quartz_device_check_extension_events (GdkDevice *device);
 
+GdkAtom _gdk_quartz_display_manager_atom_intern   (GdkDisplayManager *manager,
+                                                   const gchar       *atom_name,
+                                                   gboolean           copy_name);
+gchar * _gdk_quartz_display_manager_get_atom_name (GdkDisplayManager *manager,
+                                                   GdkAtom            atom);
+
 
 #endif /* __GDK_PRIVATE_QUARTZ_H__ */
diff --git a/gdk/quartz/gdkproperty-quartz.c b/gdk/quartz/gdkproperty-quartz.c
index 3496b5c..5a42c3b 100644
--- a/gdk/quartz/gdkproperty-quartz.c
+++ b/gdk/quartz/gdkproperty-quartz.c
@@ -151,27 +151,22 @@ intern_atom_internal (const gchar *atom_name, gboolean allocate)
 }
 
 GdkAtom
-gdk_atom_intern (const gchar *atom_name,
-		 gboolean     only_if_exists)
+_gdk_quartz_display_manager_atom_intern (GdkDisplayManager *manager,
+                                         const gchar       *atom_name,
+                                         gboolean           copy_name)
 {
-  return intern_atom_internal (atom_name, TRUE);
+  return intern_atom_internal (atom_name, copy_name);
 }
 
-GdkAtom
-gdk_atom_intern_static_string (const gchar *atom_name)
-{
-  return intern_atom_internal (atom_name, FALSE);
-}
-
-
 gchar *
-gdk_atom_name (GdkAtom atom)
+_gdk_quartz_display_manager_get_atom_name (GdkDisplayManager *manager,
+                                           GdkAtom            atom)
 {
   ensure_atom_tables ();
-    
+
   if (GPOINTER_TO_INT (atom) >= atoms_to_names->len)
     return NULL;
-    
+
   return g_strdup (g_ptr_array_index (atoms_to_names, GPOINTER_TO_INT (atom)));
 }
 



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