Commit 939c8183 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Added gtk_drag_source_unset()

Thu Dec 10 21:48:34 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
parent ba17081c
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
......
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
......
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
......
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
......
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
......
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
......
Thu Dec 10 21:48:34 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
Thu Dec 10 20:42:22 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
......
......@@ -1616,6 +1616,30 @@ gtk_drag_source_set (GtkWidget *widget,
}
/*************************************************************
* gtk_drag_source_unset
* Unregister this widget as a drag source.
* arguments:
* widget:
* results:
*************************************************************/
void
gtk_drag_source_unset (GtkWidget *widget)
{
GtkDragSourceSite *site;
g_return_if_fail (widget != NULL);
site = gtk_object_get_data (GTK_OBJECT (widget), "gtk-site-data");
if (site)
{
gtk_signal_disconnect_by_data (GTK_OBJECT (widget), site);
gtk_object_set_data (GTK_OBJECT (widget), "gtk-site-data", NULL);
}
}
/*************************************************************
* gtk_drag_source_set_icon:
* Set an icon for drags from this source.
......
......@@ -83,6 +83,8 @@ void gtk_drag_source_set (GtkWidget *widget,
gint n_targets,
GdkDragAction actions);
void gtk_drag_source_unset (GtkWidget *widget);
void gtk_drag_source_set_icon (GtkWidget *widget,
GdkColormap *colormap,
GdkPixmap *pixmap,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment