[gtk+] Drop gtk_drag_set_icon_pixbuf



commit 50006c229fe9f2dbf7bffcf40da5eff1b11e1da1
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 23 05:43:05 2017 +0200

    Drop gtk_drag_set_icon_pixbuf
    
    We are moving away from GdkPixbuf in the api.
    Use surface-based replacements instead.

 gtk/gtkdnd.c |   27 ---------------------------
 gtk/gtkdnd.h |    5 -----
 2 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 0bb71f7..15c307b 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1624,33 +1624,6 @@ gtk_drag_set_icon_definition (GdkDragContext     *context,
 }
 
 /**
- * gtk_drag_set_icon_pixbuf: (method)
- * @context: the context for a drag (This must be called 
- *            with a  context for the source side of a drag)
- * @pixbuf: the #GdkPixbuf to use as the drag icon
- * @hot_x: the X offset within @widget of the hotspot
- * @hot_y: the Y offset within @widget of the hotspot
- * 
- * Sets @pixbuf as the icon for a given drag.
- */
-void 
-gtk_drag_set_icon_pixbuf (GdkDragContext *context,
-                          GdkPixbuf      *pixbuf,
-                          gint            hot_x,
-                          gint            hot_y)
-{
-  GtkImageDefinition *def;
-
-  g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
-  g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
-
-  def = gtk_image_definition_new_pixbuf (pixbuf, 1);
-  set_icon_helper (context, def, hot_x, hot_y);
-
-  gtk_image_definition_unref (def);
-}
-
-/**
  * gtk_drag_set_icon_surface: (method)
  * @context: the context for a drag (This must be called
  *     with a context for the source side of a drag)
diff --git a/gtk/gtkdnd.h b/gtk/gtkdnd.h
index afd3eda..53fb73a 100644
--- a/gtk/gtkdnd.h
+++ b/gtk/gtkdnd.h
@@ -78,11 +78,6 @@ void gtk_drag_set_icon_widget (GdkDragContext *context,
                               gint            hot_x,
                               gint            hot_y);
 GDK_AVAILABLE_IN_ALL
-void gtk_drag_set_icon_pixbuf (GdkDragContext *context,
-                              GdkPixbuf      *pixbuf,
-                              gint            hot_x,
-                              gint            hot_y);
-GDK_AVAILABLE_IN_ALL
 void gtk_drag_set_icon_surface(GdkDragContext *context,
                               cairo_surface_t *surface);
 GDK_AVAILABLE_IN_ALL


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