mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
Remove deprecated gtk_drag_set_default_icon
This commit is contained in:
parent
2eb26d68f6
commit
605705fd6b
@ -1820,16 +1820,6 @@ gtk_drag_set_icon_default (GdkDragContext *context)
|
||||
gtk_drag_set_icon_stock (context, GTK_STOCK_DND, -2, -2);
|
||||
}
|
||||
|
||||
void
|
||||
gtk_drag_set_default_icon (GdkColormap *colormap,
|
||||
GdkPixmap *pixmap,
|
||||
GdkBitmap *mask,
|
||||
gint hot_x,
|
||||
gint hot_y)
|
||||
{
|
||||
g_warning ("gtk_drag_set_default_icon is not supported on Mac OS X.");
|
||||
}
|
||||
|
||||
static void
|
||||
gtk_drag_source_info_destroy (GtkDragSourceInfo *info)
|
||||
{
|
||||
|
47
gtk/gtkdnd.c
47
gtk/gtkdnd.c
@ -3406,53 +3406,6 @@ gtk_drag_set_icon_default (GdkDragContext *context)
|
||||
default_icon_hot_y);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_drag_set_default_icon:
|
||||
* @colormap: the colormap of the icon
|
||||
* @pixmap: the image data for the icon
|
||||
* @mask: (allow-none): the transparency mask for an image, or %NULL
|
||||
* @hot_x: The X offset within @widget of the hotspot.
|
||||
* @hot_y: The Y offset within @widget of the hotspot.
|
||||
*
|
||||
* Changes the default drag icon. GTK+ retains references for the
|
||||
* arguments, and will release them when they are no longer needed.
|
||||
*
|
||||
* Deprecated: Change the default drag icon via the stock system by
|
||||
* changing the stock pixbuf for #GTK_STOCK_DND instead.
|
||||
**/
|
||||
void
|
||||
gtk_drag_set_default_icon (GdkColormap *colormap,
|
||||
GdkPixmap *pixmap,
|
||||
GdkBitmap *mask,
|
||||
gint hot_x,
|
||||
gint hot_y)
|
||||
{
|
||||
g_return_if_fail (GDK_IS_COLORMAP (colormap));
|
||||
g_return_if_fail (GDK_IS_PIXMAP (pixmap));
|
||||
g_return_if_fail (!mask || GDK_IS_PIXMAP (mask));
|
||||
|
||||
if (default_icon_colormap)
|
||||
g_object_unref (default_icon_colormap);
|
||||
if (default_icon_pixmap)
|
||||
g_object_unref (default_icon_pixmap);
|
||||
if (default_icon_mask)
|
||||
g_object_unref (default_icon_mask);
|
||||
|
||||
default_icon_colormap = colormap;
|
||||
g_object_ref (colormap);
|
||||
|
||||
default_icon_pixmap = pixmap;
|
||||
g_object_ref (pixmap);
|
||||
|
||||
default_icon_mask = mask;
|
||||
if (mask)
|
||||
g_object_ref (mask);
|
||||
|
||||
default_icon_hot_x = hot_x;
|
||||
default_icon_hot_y = hot_y;
|
||||
}
|
||||
|
||||
|
||||
/*************************************************************
|
||||
* _gtk_drag_source_handle_event:
|
||||
* Called from widget event handling code on Drag events
|
||||
|
@ -175,14 +175,6 @@ void _gtk_drag_source_handle_event (GtkWidget *widget,
|
||||
void _gtk_drag_dest_handle_event (GtkWidget *toplevel,
|
||||
GdkEvent *event);
|
||||
|
||||
#ifndef GTK_DISABLE_DEPRECATED
|
||||
void gtk_drag_set_default_icon (GdkColormap *colormap,
|
||||
GdkPixmap *pixmap,
|
||||
GdkBitmap *mask,
|
||||
gint hot_x,
|
||||
gint hot_y);
|
||||
#endif /* !GTK_DISABLE_DEPRECATED */
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_DND_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user