To: vim-dev@vim.org Subject: Patch 5.7a.001 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.7a.001 Problem: GTK doesn't respond on drag&drop from ROX-Filer. Solution: Add "text/uri-list" target. (Thomas Leonard) Also: fix problem with checking for trash arguments. Files: src/gui_gtk_x11.c *** ../vim-5.7a/src/gui_gtk_x11.c Sat Jun 10 17:05:46 2000 --- src/gui_gtk_x11.c Sun Jun 18 14:20:26 2000 *************** *** 60,65 **** --- 60,66 ---- }; static GtkTargetEntry target_table[] = { + { "text/uri-list", 0, TARGET_STRING }, { "STRING", 0, TARGET_STRING }, { "text/plain", 0, TARGET_STRING } }; *************** *** 1216,1222 **** gdk_window_get_pointer(NULL, NULL, NULL, ¤t_modifiers); /* guard against trash */ ! if (((data->length <= 0) && (data->format != 8)) || (((char *)data->data)[data->length] != '\0')) { gtk_drag_finish(context, FALSE, FALSE, time); --- 1217,1224 ---- gdk_window_get_pointer(NULL, NULL, NULL, ¤t_modifiers); /* guard against trash */ ! if ((data->length <= 0) ! || (data->format != 8) || (((char *)data->data)[data->length] != '\0')) { gtk_drag_finish(context, FALSE, FALSE, time); *** ../vim-5.7a/src/version.c Sat Jun 10 17:05:37 2000 --- src/version.c Sun Jun 18 15:23:30 2000 *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 1, /**/ -- hundred-and-one symptoms of being an internet addict: 48. You get a tatoo that says "This body best viewed with Netscape 3.1 or higher." /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/