1 | /* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */ |
2 | /* GTK - The GIMP Toolkit |
3 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Lesser General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2 of the License, or (at your option) any later version. |
9 | * |
10 | * This library is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Lesser General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Lesser General Public |
16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
17 | */ |
18 | |
19 | /* |
20 | * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS |
21 | * file for a list of people on the GTK+ Team. See the ChangeLog |
22 | * files for a list of changes. These files are distributed with |
23 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
24 | */ |
25 | |
26 | #ifndef __GTK_DRAG_SOURCE_H__ |
27 | #define __GTK_DRAG_SOURCE_H__ |
28 | |
29 | |
30 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
31 | #error "Only <gtk/gtk.h> can be included directly." |
32 | #endif |
33 | |
34 | #include <gtk/gtkselection.h> |
35 | #include <gtk/gtkwidget.h> |
36 | |
37 | |
38 | G_BEGIN_DECLS |
39 | |
40 | GDK_AVAILABLE_IN_ALL |
41 | void gtk_drag_source_set (GtkWidget *widget, |
42 | GdkModifierType start_button_mask, |
43 | const GtkTargetEntry *targets, |
44 | gint n_targets, |
45 | GdkDragAction actions); |
46 | |
47 | GDK_AVAILABLE_IN_ALL |
48 | void gtk_drag_source_unset (GtkWidget *widget); |
49 | |
50 | GDK_AVAILABLE_IN_ALL |
51 | GtkTargetList* gtk_drag_source_get_target_list (GtkWidget *widget); |
52 | GDK_AVAILABLE_IN_ALL |
53 | void gtk_drag_source_set_target_list (GtkWidget *widget, |
54 | GtkTargetList *target_list); |
55 | GDK_AVAILABLE_IN_ALL |
56 | void gtk_drag_source_add_text_targets (GtkWidget *widget); |
57 | GDK_AVAILABLE_IN_ALL |
58 | void gtk_drag_source_add_image_targets (GtkWidget *widget); |
59 | GDK_AVAILABLE_IN_ALL |
60 | void gtk_drag_source_add_uri_targets (GtkWidget *widget); |
61 | |
62 | GDK_AVAILABLE_IN_ALL |
63 | void gtk_drag_source_set_icon_pixbuf (GtkWidget *widget, |
64 | GdkPixbuf *pixbuf); |
65 | GDK_DEPRECATED_IN_3_10_FOR(gtk_drag_source_set_icon_name) |
66 | void gtk_drag_source_set_icon_stock (GtkWidget *widget, |
67 | const gchar *stock_id); |
68 | GDK_AVAILABLE_IN_ALL |
69 | void gtk_drag_source_set_icon_name (GtkWidget *widget, |
70 | const gchar *icon_name); |
71 | GDK_AVAILABLE_IN_3_2 |
72 | void gtk_drag_source_set_icon_gicon (GtkWidget *widget, |
73 | GIcon *icon); |
74 | |
75 | |
76 | G_END_DECLS |
77 | |
78 | #endif /* __GTK_DRAG_SOURCE_H__ */ |
79 | |