diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-10-22 22:50:32 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-10-22 22:50:32 +0000 |
commit | a811584d01706df3651a93a3b0c2c9f86249ca52 (patch) | |
tree | 224c8567dc2065e9f428f8c307db07963690a92f /gtk/gtkselection.h | |
parent | 9d0a283f341aaf37a568579715b6c92fa518fd89 (diff) | |
download | gtk+-a811584d01706df3651a93a3b0c2c9f86249ca52.tar.gz |
Use the new file DND api.
2004-10-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_drag_data_received)
(gtk_file_chooser_button_init): Use the new file DND api.
* gtk/gtkdnd.h:
* gtk/gtkdnd.c (gtk_drag_dest_add_uri_targets)
(gtk_drag_source_add_uri_targets):
* gtk/gtkselection.h:
* gtk/gtkselection.c (gtk_target_list_add_uri_targets):
(gtk_selection_data_set_uris):
(gtk_selection_data_get_uris): New functions to allow
handling file DND "without knowing jack shit".
* configure.in: Bump glib requirement to 2.5.4.
* gtk/gtkfilechooserdefault.c (shortcuts_drop_uris): Use
g_uri_list_extract_uris().
Diffstat (limited to 'gtk/gtkselection.h')
-rw-r--r-- | gtk/gtkselection.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h index 12c341201d..5623b440e4 100644 --- a/gtk/gtkselection.h +++ b/gtk/gtkselection.h @@ -95,11 +95,13 @@ void gtk_target_list_add (GtkTargetList *list, GdkAtom target, guint flags, guint info); -void gtk_target_list_add_text_targets (GtkTargetList *list, - guint info); +void gtk_target_list_add_text_targets (GtkTargetList *list, + guint info); void gtk_target_list_add_image_targets (GtkTargetList *list, guint info, gboolean writable); +void gtk_target_list_add_uri_targets (GtkTargetList *list, + guint info); void gtk_target_list_add_table (GtkTargetList *list, const GtkTargetEntry *targets, guint ntargets); @@ -145,6 +147,9 @@ guchar * gtk_selection_data_get_text (GtkSelectionData *selection_data); gboolean gtk_selection_data_set_pixbuf (GtkSelectionData *selection_data, GdkPixbuf *pixbuf); GdkPixbuf *gtk_selection_data_get_pixbuf (GtkSelectionData *selection_data); +gboolean gtk_selection_data_set_uris (GtkSelectionData *selection_data, + gchar **uris); +gchar **gtk_selection_data_get_uris (GtkSelectionData *selection_data); gboolean gtk_selection_data_get_targets (GtkSelectionData *selection_data, GdkAtom **targets, |