[libdazzle] dnd: deprecate URI list API



commit e651d71ce8928ee9266a8e811bedc4f76bf13e45
Author: Christian Hergert <chergert redhat com>
Date:   Wed Dec 13 01:31:47 2017 -0800

    dnd: deprecate URI list API
    
    This shouldn't have ever landed in our ABI, to be honest.

 src/util/dzl-dnd.c |    9 +--------
 src/util/dzl-dnd.h |    2 +-
 2 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/util/dzl-dnd.c b/src/util/dzl-dnd.c
index 4efc1b4..c047af9 100644
--- a/src/util/dzl-dnd.c
+++ b/src/util/dzl-dnd.c
@@ -33,12 +33,5 @@
 gchar **
 dzl_dnd_get_uri_list (GtkSelectionData *selection_data)
 {
-  const gchar *data;
-
-  g_return_val_if_fail (selection_data, NULL);
-  g_return_val_if_fail (gtk_selection_data_get_length (selection_data) > 0, NULL);
-
-  data = (const gchar *)gtk_selection_data_get_data (selection_data);
-
-  return g_uri_list_extract_uris (data);
+  return gtk_selection_data_get_uris (selection_data);
 }
diff --git a/src/util/dzl-dnd.h b/src/util/dzl-dnd.h
index c171b98..00b5fca 100644
--- a/src/util/dzl-dnd.h
+++ b/src/util/dzl-dnd.h
@@ -25,7 +25,7 @@
 
 G_BEGIN_DECLS
 
-DZL_AVAILABLE_IN_ALL
+DZL_DEPRECATED_FOR (gtk_selection_data_get_uris)
 gchar **dzl_dnd_get_uri_list (GtkSelectionData *selection_data);
 
 G_END_DECLS


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