app/widgets/gimpdnd.[ch] app/widgets/gimpselectiondata.[ch] changed
2004-06-30 Michael Natterer <mitch@gimp.org> * app/widgets/gimpdnd.[ch] * app/widgets/gimpselectiondata.[ch] * app/widgets/gimpcontainertreeview.[ch]: changed "files" and "uris" to "uri_list" in all function names, parameters and typedefs. * app/widgets/gimpcontainertreeview-dnd.c * app/widgets/gimpdocumentview.c * app/widgets/gimplayertreeview.c * app/widgets/gimptoolbox-dnd.c * app/display/gimpdisplayshell-dnd.[ch] * app/display/gimpdisplayshell.c: changed accordingly.
This commit is contained in:

committed by
Michael Natterer

parent
8040a22aa9
commit
cc6aa18619
14
ChangeLog
14
ChangeLog
@ -1,3 +1,17 @@
|
||||
2004-06-30 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpdnd.[ch]
|
||||
* app/widgets/gimpselectiondata.[ch]
|
||||
* app/widgets/gimpcontainertreeview.[ch]: changed "files" and "uris"
|
||||
to "uri_list" in all function names, parameters and typedefs.
|
||||
|
||||
* app/widgets/gimpcontainertreeview-dnd.c
|
||||
* app/widgets/gimpdocumentview.c
|
||||
* app/widgets/gimplayertreeview.c
|
||||
* app/widgets/gimptoolbox-dnd.c
|
||||
* app/display/gimpdisplayshell-dnd.[ch]
|
||||
* app/display/gimpdisplayshell.c: changed accordingly.
|
||||
|
||||
2004-06-30 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/maze/maze_face.c: made the dialog look a little less
|
||||
|
@ -279,8 +279,8 @@ gimp_display_shell_drop_buffer (GtkWidget *widget,
|
||||
}
|
||||
|
||||
void
|
||||
gimp_display_shell_drop_files (GtkWidget *widget,
|
||||
GList *files,
|
||||
gimp_display_shell_drop_uri_list (GtkWidget *widget,
|
||||
GList *uri_list,
|
||||
gpointer data)
|
||||
{
|
||||
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (data);
|
||||
@ -288,11 +288,11 @@ gimp_display_shell_drop_files (GtkWidget *widget,
|
||||
GimpContext *context;
|
||||
GList *list;
|
||||
|
||||
D (g_print ("drop files on canvas\n"));
|
||||
D (g_print ("drop uri list on canvas\n"));
|
||||
|
||||
context = gimp_get_user_context (gimage->gimp);
|
||||
|
||||
for (list = files; list; list = g_list_next (list))
|
||||
for (list = uri_list; list; list = g_list_next (list))
|
||||
{
|
||||
const gchar *uri = list->data;
|
||||
GimpLayer *new_layer;
|
||||
|
@ -39,8 +39,8 @@ void gimp_display_shell_drop_color (GtkWidget *widget,
|
||||
void gimp_display_shell_drop_buffer (GtkWidget *widget,
|
||||
GimpViewable *viewable,
|
||||
gpointer data);
|
||||
void gimp_display_shell_drop_files (GtkWidget *widget,
|
||||
GList *files,
|
||||
void gimp_display_shell_drop_uri_list (GtkWidget *widget,
|
||||
GList *uri_list,
|
||||
gpointer data);
|
||||
|
||||
|
||||
|
@ -350,8 +350,8 @@ gimp_display_shell_init (GimpDisplayShell *shell)
|
||||
shell);
|
||||
|
||||
/* dnd stuff */
|
||||
gimp_dnd_file_dest_add (GTK_WIDGET (shell),
|
||||
gimp_display_shell_drop_files,
|
||||
gimp_dnd_uri_list_dest_add (GTK_WIDGET (shell),
|
||||
gimp_display_shell_drop_uri_list,
|
||||
shell);
|
||||
gimp_dnd_viewable_dest_add (GTK_WIDGET (shell), GIMP_TYPE_LAYER,
|
||||
gimp_display_shell_drop_drawable,
|
||||
|
@ -307,10 +307,8 @@ gimp_container_tree_view_drag_drop (GtkWidget *widget,
|
||||
tree_view_class = GIMP_CONTAINER_TREE_VIEW_GET_CLASS (tree_view);
|
||||
|
||||
if (src_viewable)
|
||||
tree_view_class->drop_viewable (tree_view,
|
||||
src_viewable,
|
||||
dest_viewable,
|
||||
drop_pos);
|
||||
tree_view_class->drop_viewable (tree_view, src_viewable,
|
||||
dest_viewable, drop_pos);
|
||||
else
|
||||
gtk_drag_get_data (widget, context, target, time);
|
||||
|
||||
@ -348,15 +346,15 @@ gimp_container_tree_view_drag_data_received (GtkWidget *widget,
|
||||
case GIMP_DND_TYPE_URI_LIST:
|
||||
case GIMP_DND_TYPE_TEXT_PLAIN:
|
||||
case GIMP_DND_TYPE_NETSCAPE_URL:
|
||||
if (tree_view_class->drop_files)
|
||||
if (tree_view_class->drop_uri_list)
|
||||
{
|
||||
GList *uri_list;
|
||||
|
||||
uri_list = gimp_selection_data_get_uris (selection_data);
|
||||
uri_list = gimp_selection_data_get_uri_list (selection_data);
|
||||
|
||||
if (uri_list)
|
||||
{
|
||||
tree_view_class->drop_files (tree_view, uri_list,
|
||||
tree_view_class->drop_uri_list (tree_view, uri_list,
|
||||
dest_viewable, drop_pos);
|
||||
|
||||
g_list_foreach (uri_list, (GFunc) g_free, NULL);
|
||||
|
@ -157,7 +157,7 @@ gimp_container_tree_view_class_init (GimpContainerTreeViewClass *klass)
|
||||
klass->drop_possible = gimp_container_tree_view_real_drop_possible;
|
||||
klass->drop_viewable = gimp_container_tree_view_real_drop_viewable;
|
||||
klass->drop_color = NULL;
|
||||
klass->drop_files = NULL;
|
||||
klass->drop_uri_list = NULL;
|
||||
klass->drop_svg = NULL;
|
||||
}
|
||||
|
||||
|
@ -87,8 +87,8 @@ struct _GimpContainerTreeViewClass
|
||||
const GimpRGB *src_color,
|
||||
GimpViewable *dest_viewable,
|
||||
GtkTreeViewDropPosition drop_pos);
|
||||
void (* drop_files) (GimpContainerTreeView *tree_view,
|
||||
GList *files,
|
||||
void (* drop_uri_list) (GimpContainerTreeView *tree_view,
|
||||
GList *uri_list,
|
||||
GimpViewable *dest_viewable,
|
||||
GtkTreeViewDropPosition drop_pos);
|
||||
void (* drop_svg) (GimpContainerTreeView *tree_view,
|
||||
|
@ -103,14 +103,14 @@ static GtkWidget * gimp_dnd_get_color_icon (GtkWidget *widget,
|
||||
GCallback get_color_func,
|
||||
gpointer get_color_data);
|
||||
|
||||
static void gimp_dnd_get_file_data (GtkWidget *widget,
|
||||
GCallback get_file_func,
|
||||
gpointer get_file_data,
|
||||
static void gimp_dnd_get_uri_list_data (GtkWidget *widget,
|
||||
GCallback get_uri_list_func,
|
||||
gpointer get_uri_list_data,
|
||||
GtkSelectionData *selection,
|
||||
GdkAtom atom);
|
||||
static gboolean gimp_dnd_set_file_data (GtkWidget *widget,
|
||||
GCallback set_file_func,
|
||||
gpointer set_file_data,
|
||||
static gboolean gimp_dnd_set_uri_list_data (GtkWidget *widget,
|
||||
GCallback set_uri_list_func,
|
||||
gpointer set_uri_list_data,
|
||||
GtkSelectionData *selection);
|
||||
|
||||
static void gimp_dnd_get_color_data (GtkWidget *widget,
|
||||
@ -214,15 +214,15 @@ static GimpDndDataDef dnd_data_defs[] =
|
||||
{
|
||||
GIMP_TARGET_URI_LIST,
|
||||
|
||||
"gimp-dnd-get-file-func",
|
||||
"gimp-dnd-get-file-data",
|
||||
"gimp-dnd-get-uri-list-func",
|
||||
"gimp-dnd-get-uri-list-data",
|
||||
|
||||
"gimp-dnd-set-file-func",
|
||||
"gimp-dnd-set-file-data",
|
||||
"gimp-dnd-set-uri-list-func",
|
||||
"gimp-dnd-set-uri-list-data",
|
||||
|
||||
NULL,
|
||||
gimp_dnd_get_file_data,
|
||||
gimp_dnd_set_file_data
|
||||
gimp_dnd_get_uri_list_data,
|
||||
gimp_dnd_set_uri_list_data
|
||||
},
|
||||
|
||||
{
|
||||
@ -231,12 +231,12 @@ static GimpDndDataDef dnd_data_defs[] =
|
||||
NULL,
|
||||
NULL,
|
||||
|
||||
"gimp-dnd-set-file-func",
|
||||
"gimp-dnd-set-file-data",
|
||||
"gimp-dnd-set-uri-list-func",
|
||||
"gimp-dnd-set-uri-list-data",
|
||||
|
||||
NULL,
|
||||
NULL,
|
||||
gimp_dnd_set_file_data
|
||||
gimp_dnd_set_uri_list_data
|
||||
},
|
||||
|
||||
{
|
||||
@ -245,12 +245,12 @@ static GimpDndDataDef dnd_data_defs[] =
|
||||
NULL,
|
||||
NULL,
|
||||
|
||||
"gimp-dnd-set-file-func",
|
||||
"gimp-dnd-set-file-data",
|
||||
"gimp-dnd-set-uri-list-func",
|
||||
"gimp-dnd-set-uri-list-data",
|
||||
|
||||
NULL,
|
||||
NULL,
|
||||
gimp_dnd_set_file_data
|
||||
gimp_dnd_set_uri_list_data
|
||||
},
|
||||
|
||||
{
|
||||
@ -911,40 +911,44 @@ gimp_dnd_data_dest_remove (GimpDndType data_type,
|
||||
}
|
||||
|
||||
|
||||
/************************/
|
||||
/* file dnd functions */
|
||||
/************************/
|
||||
/****************************/
|
||||
/* uri list dnd functions */
|
||||
/****************************/
|
||||
|
||||
static void
|
||||
gimp_dnd_get_file_data (GtkWidget *widget,
|
||||
GCallback get_file_func,
|
||||
gpointer get_file_data,
|
||||
gimp_dnd_get_uri_list_data (GtkWidget *widget,
|
||||
GCallback get_uri_list_func,
|
||||
gpointer get_uri_list_data,
|
||||
GtkSelectionData *selection,
|
||||
GdkAtom atom)
|
||||
{
|
||||
GList *uri_list;
|
||||
|
||||
uri_list = (* (GimpDndDragFileFunc) get_file_func) (widget, get_file_data);
|
||||
uri_list = (* (GimpDndDragUriListFunc) get_uri_list_func) (widget,
|
||||
get_uri_list_data);
|
||||
|
||||
if (uri_list)
|
||||
{
|
||||
gimp_selection_data_set_uris (selection, atom, uri_list);
|
||||
gimp_selection_data_set_uri_list (selection, atom, uri_list);
|
||||
|
||||
g_list_foreach (uri_list, (GFunc) g_free, NULL);
|
||||
g_list_free (uri_list);
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gimp_dnd_set_file_data (GtkWidget *widget,
|
||||
GCallback set_file_func,
|
||||
gpointer set_file_data,
|
||||
gimp_dnd_set_uri_list_data (GtkWidget *widget,
|
||||
GCallback set_uri_list_func,
|
||||
gpointer set_uri_list_data,
|
||||
GtkSelectionData *selection)
|
||||
{
|
||||
GList *uri_list = gimp_selection_data_get_uris (selection);
|
||||
GList *uri_list = gimp_selection_data_get_uri_list (selection);
|
||||
|
||||
if (! uri_list)
|
||||
return FALSE;
|
||||
|
||||
(* (GimpDndDropFileFunc) set_file_func) (widget, uri_list, set_file_data);
|
||||
(* (GimpDndDropUriListFunc) set_uri_list_func) (widget, uri_list,
|
||||
set_uri_list_data);
|
||||
|
||||
g_list_foreach (uri_list, (GFunc) g_free, NULL);
|
||||
g_list_free (uri_list);
|
||||
@ -953,19 +957,19 @@ gimp_dnd_set_file_data (GtkWidget *widget,
|
||||
}
|
||||
|
||||
void
|
||||
gimp_dnd_file_source_add (GtkWidget *widget,
|
||||
GimpDndDragFileFunc get_file_func,
|
||||
gimp_dnd_uri_list_source_add (GtkWidget *widget,
|
||||
GimpDndDragUriListFunc get_uri_list_func,
|
||||
gpointer data)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
|
||||
gimp_dnd_data_source_add (GIMP_DND_TYPE_URI_LIST, widget,
|
||||
G_CALLBACK (get_file_func),
|
||||
G_CALLBACK (get_uri_list_func),
|
||||
data);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_dnd_file_source_remove (GtkWidget *widget)
|
||||
gimp_dnd_uri_list_source_remove (GtkWidget *widget)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
|
||||
@ -973,8 +977,8 @@ gimp_dnd_file_source_remove (GtkWidget *widget)
|
||||
}
|
||||
|
||||
void
|
||||
gimp_dnd_file_dest_add (GtkWidget *widget,
|
||||
GimpDndDropFileFunc set_file_func,
|
||||
gimp_dnd_uri_list_dest_add (GtkWidget *widget,
|
||||
GimpDndDropUriListFunc set_uri_list_func,
|
||||
gpointer data)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
@ -989,18 +993,18 @@ gimp_dnd_file_dest_add (GtkWidget *widget,
|
||||
GDK_ACTION_COPY | GDK_ACTION_MOVE);
|
||||
|
||||
gimp_dnd_data_dest_add (GIMP_DND_TYPE_NETSCAPE_URL, widget,
|
||||
G_CALLBACK (set_file_func),
|
||||
G_CALLBACK (set_uri_list_func),
|
||||
data);
|
||||
gimp_dnd_data_dest_add (GIMP_DND_TYPE_TEXT_PLAIN, widget,
|
||||
G_CALLBACK (set_file_func),
|
||||
G_CALLBACK (set_uri_list_func),
|
||||
data);
|
||||
gimp_dnd_data_dest_add (GIMP_DND_TYPE_URI_LIST, widget,
|
||||
G_CALLBACK (set_file_func),
|
||||
G_CALLBACK (set_uri_list_func),
|
||||
data);
|
||||
}
|
||||
|
||||
void
|
||||
gimp_dnd_file_dest_remove (GtkWidget *widget)
|
||||
gimp_dnd_uri_list_dest_remove (GtkWidget *widget)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
|
||||
|
@ -95,23 +95,23 @@
|
||||
void gimp_dnd_init (Gimp *gimp);
|
||||
|
||||
|
||||
/* file / url dnd functions */
|
||||
/* uri list dnd functions */
|
||||
|
||||
typedef GList * (* GimpDndDragFileFunc) (GtkWidget *widget,
|
||||
typedef GList * (* GimpDndDragUriListFunc) (GtkWidget *widget,
|
||||
gpointer data);
|
||||
typedef void (* GimpDndDropFileFunc) (GtkWidget *widget,
|
||||
GList *files,
|
||||
typedef void (* GimpDndDropUriListFunc) (GtkWidget *widget,
|
||||
GList *uri_list,
|
||||
gpointer data);
|
||||
|
||||
void gimp_dnd_file_source_add (GtkWidget *widget,
|
||||
GimpDndDragFileFunc get_file_func,
|
||||
void gimp_dnd_uri_list_source_add (GtkWidget *widget,
|
||||
GimpDndDragUriListFunc get_uri_list_func,
|
||||
gpointer data);
|
||||
void gimp_dnd_file_source_remove (GtkWidget *widget);
|
||||
void gimp_dnd_uri_list_source_remove (GtkWidget *widget);
|
||||
|
||||
void gimp_dnd_file_dest_add (GtkWidget *widget,
|
||||
GimpDndDropFileFunc set_file_func,
|
||||
void gimp_dnd_uri_list_dest_add (GtkWidget *widget,
|
||||
GimpDndDropUriListFunc set_uri_list_func,
|
||||
gpointer data);
|
||||
void gimp_dnd_file_dest_remove (GtkWidget *widget);
|
||||
void gimp_dnd_uri_list_dest_remove (GtkWidget *widget);
|
||||
|
||||
|
||||
/* color dnd functions */
|
||||
|
@ -47,7 +47,7 @@ static void gimp_document_view_init (GimpDocumentView *view);
|
||||
|
||||
static void gimp_document_view_activate_item (GimpContainerEditor *editor,
|
||||
GimpViewable *viewable);
|
||||
static GList * gimp_document_view_drag_file (GtkWidget *widget,
|
||||
static GList * gimp_document_view_drag_uri_list (GtkWidget *widget,
|
||||
gpointer data);
|
||||
|
||||
|
||||
@ -181,8 +181,8 @@ gimp_document_view_new (GimpViewType view_type,
|
||||
|
||||
dnd_widget = gimp_container_view_get_dnd_widget (editor->view);
|
||||
|
||||
gimp_dnd_file_source_add (dnd_widget,
|
||||
gimp_document_view_drag_file,
|
||||
gimp_dnd_uri_list_source_add (dnd_widget,
|
||||
gimp_document_view_drag_uri_list,
|
||||
editor);
|
||||
}
|
||||
|
||||
@ -210,7 +210,7 @@ gimp_document_view_activate_item (GimpContainerEditor *editor,
|
||||
}
|
||||
|
||||
static GList *
|
||||
gimp_document_view_drag_file (GtkWidget *widget,
|
||||
gimp_document_view_drag_uri_list (GtkWidget *widget,
|
||||
gpointer data)
|
||||
{
|
||||
GimpViewable *viewable = gimp_dnd_get_drag_data (widget);
|
||||
|
@ -97,8 +97,8 @@ static void gimp_layer_tree_view_drop_color (GimpContainerTreeView *view,
|
||||
const GimpRGB *color,
|
||||
GimpViewable *dest_viewable,
|
||||
GtkTreeViewDropPosition drop_pos);
|
||||
static void gimp_layer_tree_view_drop_files (GimpContainerTreeView *view,
|
||||
GList *files,
|
||||
static void gimp_layer_tree_view_drop_uri_list (GimpContainerTreeView *view,
|
||||
GList *uri_list,
|
||||
GimpViewable *dest_viewable,
|
||||
GtkTreeViewDropPosition drop_pos);
|
||||
|
||||
@ -221,7 +221,7 @@ gimp_layer_tree_view_class_init (GimpLayerTreeViewClass *klass)
|
||||
tree_view_class->drop_possible = gimp_layer_tree_view_drop_possible;
|
||||
tree_view_class->drop_viewable = gimp_layer_tree_view_drop_viewable;
|
||||
tree_view_class->drop_color = gimp_layer_tree_view_drop_color;
|
||||
tree_view_class->drop_files = gimp_layer_tree_view_drop_files;
|
||||
tree_view_class->drop_uri_list = gimp_layer_tree_view_drop_uri_list;
|
||||
|
||||
item_view_class->set_image = gimp_layer_tree_view_set_image;
|
||||
item_view_class->get_container = gimp_image_get_layers;
|
||||
@ -408,7 +408,7 @@ gimp_layer_tree_view_constructor (GType type,
|
||||
G_CALLBACK (gimp_layer_tree_view_mask_clicked),
|
||||
layer_view);
|
||||
|
||||
gimp_dnd_file_dest_add (GTK_WIDGET (tree_view->view),
|
||||
gimp_dnd_uri_list_dest_add (GTK_WIDGET (tree_view->view),
|
||||
NULL, tree_view);
|
||||
gimp_dnd_color_dest_add (GTK_WIDGET (tree_view->view),
|
||||
NULL, tree_view);
|
||||
@ -769,8 +769,8 @@ gimp_layer_tree_view_drop_color (GimpContainerTreeView *view,
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_layer_tree_view_drop_files (GimpContainerTreeView *view,
|
||||
GList *files,
|
||||
gimp_layer_tree_view_drop_uri_list (GimpContainerTreeView *view,
|
||||
GList *uri_list,
|
||||
GimpViewable *dest_viewable,
|
||||
GtkTreeViewDropPosition drop_pos)
|
||||
{
|
||||
@ -784,7 +784,7 @@ gimp_layer_tree_view_drop_files (GimpContainerTreeView *view,
|
||||
if (drop_pos == GTK_TREE_VIEW_DROP_AFTER)
|
||||
index++;
|
||||
|
||||
for (list = files; list; list = g_list_next (list))
|
||||
for (list = uri_list; list; list = g_list_next (list))
|
||||
{
|
||||
const gchar *uri = list->data;
|
||||
GimpLayer *new_layer;
|
||||
|
@ -56,18 +56,18 @@
|
||||
|
||||
|
||||
void
|
||||
gimp_selection_data_set_uris (GtkSelectionData *selection,
|
||||
gimp_selection_data_set_uri_list (GtkSelectionData *selection,
|
||||
GdkAtom atom,
|
||||
GList *uris)
|
||||
GList *uri_list)
|
||||
{
|
||||
GList *list;
|
||||
gchar *vals = NULL;
|
||||
|
||||
g_return_if_fail (selection != NULL);
|
||||
g_return_if_fail (atom != GDK_NONE);
|
||||
g_return_if_fail (uris != NULL);
|
||||
g_return_if_fail (uri_list != NULL);
|
||||
|
||||
for (list = uris; list; list = g_list_next (list))
|
||||
for (list = uri_list; list; list = g_list_next (list))
|
||||
{
|
||||
if (vals)
|
||||
{
|
||||
@ -175,7 +175,7 @@ gimp_unescape_uri_string (const char *escaped,
|
||||
}
|
||||
|
||||
GList *
|
||||
gimp_selection_data_get_uris (GtkSelectionData *selection)
|
||||
gimp_selection_data_get_uri_list (GtkSelectionData *selection)
|
||||
{
|
||||
GList *crap_list = NULL;
|
||||
GList *uri_list = NULL;
|
||||
|
@ -22,10 +22,10 @@
|
||||
|
||||
/* uri list */
|
||||
|
||||
void gimp_selection_data_set_uris (GtkSelectionData *selection,
|
||||
void gimp_selection_data_set_uri_list (GtkSelectionData *selection,
|
||||
GdkAtom atom,
|
||||
GList *uris);
|
||||
GList * gimp_selection_data_get_uris (GtkSelectionData *selection);
|
||||
GList * gimp_selection_data_get_uri_list (GtkSelectionData *selection);
|
||||
|
||||
|
||||
/* color */
|
||||
|
@ -46,8 +46,8 @@
|
||||
|
||||
/* local function prototypes */
|
||||
|
||||
static void gimp_toolbox_drop_files (GtkWidget *widget,
|
||||
GList *files,
|
||||
static void gimp_toolbox_drop_uri_list (GtkWidget *widget,
|
||||
GList *uri_list,
|
||||
gpointer data);
|
||||
static void gimp_toolbox_drop_drawable (GtkWidget *widget,
|
||||
GimpViewable *viewable,
|
||||
@ -71,11 +71,11 @@ gimp_toolbox_dnd_init (GimpToolbox *toolbox)
|
||||
|
||||
dock = GIMP_DOCK (toolbox);
|
||||
|
||||
gimp_dnd_file_dest_add (GTK_WIDGET (toolbox),
|
||||
gimp_toolbox_drop_files,
|
||||
gimp_dnd_uri_list_dest_add (GTK_WIDGET (toolbox),
|
||||
gimp_toolbox_drop_uri_list,
|
||||
dock->context);
|
||||
gimp_dnd_file_dest_add (toolbox->tool_wbox,
|
||||
gimp_toolbox_drop_files,
|
||||
gimp_dnd_uri_list_dest_add (toolbox->tool_wbox,
|
||||
gimp_toolbox_drop_uri_list,
|
||||
dock->context);
|
||||
|
||||
gimp_dnd_viewable_dest_add (toolbox->tool_wbox, GIMP_TYPE_LAYER,
|
||||
@ -99,14 +99,14 @@ gimp_toolbox_dnd_init (GimpToolbox *toolbox)
|
||||
/* private functions */
|
||||
|
||||
static void
|
||||
gimp_toolbox_drop_files (GtkWidget *widget,
|
||||
GList *files,
|
||||
gimp_toolbox_drop_uri_list (GtkWidget *widget,
|
||||
GList *uri_list,
|
||||
gpointer data)
|
||||
{
|
||||
GimpContext *context = GIMP_CONTEXT (data);
|
||||
GList *list;
|
||||
|
||||
for (list = files; list; list = g_list_next (list))
|
||||
for (list = uri_list; list; list = g_list_next (list))
|
||||
{
|
||||
const gchar *uri = list->data;
|
||||
GimpImage *gimage;
|
||||
|
Reference in New Issue
Block a user