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()
This commit is contained in:
Owen Taylor 1998-12-11 02:48:40 +00:00 committed by Owen Taylor
parent ba17081caa
commit 939c818395
9 changed files with 54 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -1,3 +1,7 @@
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

View File

@ -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.

View File

@ -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,