[gtk/wip/otte/dnd: 24/30] Don't use GdkAtom where const char * is used



commit 6c61c7bf0bd70f16293d843f7820e5f7013c9ad9
Author: Benjamin Otte <otte redhat com>
Date:   Sat Feb 22 22:52:30 2020 +0100

    Don't use GdkAtom where const char * is used
    
    Those are all forgotten transitions while updating code to new APIs.

 gdk/gdkdevice.h        | 2 +-
 gdk/gdkdeviceprivate.h | 4 ++--
 gtk/gtkcalendar.c      | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gdk/gdkdevice.h b/gdk/gdkdevice.h
index 0179ee04dc..5520e73dfb 100644
--- a/gdk/gdkdevice.h
+++ b/gdk/gdkdevice.h
@@ -188,7 +188,7 @@ GList *  gdk_device_list_axes      (GdkDevice       *device);
 GDK_AVAILABLE_IN_ALL
 gboolean gdk_device_get_axis_value (GdkDevice       *device,
                                     gdouble         *axes,
-                                    GdkAtom          axis_label,
+                                    const char      *axis_label,
                                     gdouble         *value);
 
 GDK_AVAILABLE_IN_ALL
diff --git a/gdk/gdkdeviceprivate.h b/gdk/gdkdeviceprivate.h
index 70c29b7e85..29a9dc6de5 100644
--- a/gdk/gdkdeviceprivate.h
+++ b/gdk/gdkdeviceprivate.h
@@ -116,14 +116,14 @@ void  _gdk_device_set_associated_device (GdkDevice *device,
 
 void  _gdk_device_reset_axes (GdkDevice   *device);
 guint _gdk_device_add_axis   (GdkDevice   *device,
-                              GdkAtom      label_atom,
+                              const char  *label_atom,
                               GdkAxisUse   use,
                               gdouble      min_value,
                               gdouble      max_value,
                               gdouble      resolution);
 void _gdk_device_get_axis_info (GdkDevice  *device,
                                guint       index,
-                               GdkAtom    *label_atom,
+                               const char**label_atom,
                                GdkAxisUse *use,
                                gdouble    *min_value,
                                gdouble    *max_value,
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 4ef0721072..eb63b38db0 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -1514,7 +1514,7 @@ gtk_calendar_drag_accept (GtkDropTarget *dest,
                           GdkDrop       *drop,
                           GtkCalendar   *calendar)
 {
-  GdkAtom target;
+  const char *target;
 
   target = gtk_drop_target_find_mimetype (dest);
   if (!target || gdk_drop_get_actions (drop) == 0)
@@ -1537,7 +1537,7 @@ gtk_calendar_drag_drop (GtkDropTarget  *dest,
                         int             y,
                         GtkCalendar    *calendar)
 {
-  GdkAtom target;
+  const char *target;
 
   target = gtk_drop_target_find_mimetype (dest);
   if (target != NULL)


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