1
1

1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gdnd.c (drop_on_directory): Do not ask for the action twice.
	This was a leftover from a bit of code reorganization.
Этот коммит содержится в:
Miguel de Icaza 1999-02-11 18:02:07 +00:00
родитель 3db04c2bb5
Коммит 793afd03de
2 изменённых файлов: 6 добавлений и 12 удалений

Просмотреть файл

@ -1,5 +1,8 @@
1999-02-11 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdnd.c (drop_on_directory): Do not ask for the action twice.
This was a leftover from a bit of code reorganization.
* gscreen.c (panel_icon_list_button_press): Fixed "=" -> "!="
typo.

Просмотреть файл

@ -289,18 +289,9 @@ drop_url_on_directory (GdkDragContext *context, GtkSelectionData *selection_data
/* Drop stuff on a directory */
static int
drop_on_directory (GdkDragContext *context, GtkSelectionData *selection_data, char *destdir)
drop_on_directory (GdkDragContext *context, GtkSelectionData *selection_data,
GdkDragAction action, char *destdir)
{
GdkDragAction action;
if (context->action == GDK_ACTION_ASK) {
action = get_action (context);
if (action == GDK_ACTION_ASK)
return FALSE;
} else
action = context->action;
if (gdnd_drag_context_has_target (context, TARGET_URI_LIST))
drop_uri_list_on_directory (context, selection_data, action, destdir);
else if (gdnd_drag_context_has_target (context, TARGET_URL))
@ -402,7 +393,7 @@ gdnd_perform_drop (GdkDragContext *context, GtkSelectionData *selection_data,
action = context->action;
if (S_ISDIR (dest_fe->buf.st_mode) || dest_fe->f.link_to_dir)
return drop_on_directory (context, selection_data, dest_name);
return drop_on_directory (context, selection_data, action, dest_name);
else
return drop_on_file (context, selection_data, dest_fe, dest_name);
}