forked from AuroraMiddleware/gtk
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:
parent
ba17081caa
commit
939c818395
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
24
gtk/gtkdnd.c
24
gtk/gtkdnd.c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user