# HG changeset patch # User zas_ # Date 1207944089 0 # Node ID 2ebd0d9145cf53d33ba65ec7f98aa30b7d272b7e # Parent d5a3bcc6a694125a932859d952f8599a5a2717ce Define drag and drop target string in dnd.h. Make it use the current name of the application. diff -r d5a3bcc6a694 -r 2ebd0d9145cf src/collect-table.c --- a/src/collect-table.c Fri Apr 11 19:43:36 2008 +0000 +++ b/src/collect-table.c Fri Apr 11 20:01:29 2008 +0000 @@ -1984,14 +1984,14 @@ */ static GtkTargetEntry collection_drag_types[] = { - { "application/x-gqview-collection-member", 0, TARGET_APP_COLLECTION_MEMBER }, + { TARGET_APP_COLLECTION_MEMBER_STRING, 0, TARGET_APP_COLLECTION_MEMBER }, { "text/uri-list", 0, TARGET_URI_LIST }, { "text/plain", 0, TARGET_TEXT_PLAIN } }; static gint n_collection_drag_types = 3; static GtkTargetEntry collection_drop_types[] = { - { "application/x-gqview-collection-member", 0, TARGET_APP_COLLECTION_MEMBER }, + { TARGET_APP_COLLECTION_MEMBER_STRING, 0, TARGET_APP_COLLECTION_MEMBER }, { "text/uri-list", 0, TARGET_URI_LIST } }; static gint n_collection_drop_types = 2; diff -r d5a3bcc6a694 -r 2ebd0d9145cf src/dnd.c --- a/src/dnd.c Fri Apr 11 19:43:36 2008 +0000 +++ b/src/dnd.c Fri Apr 11 20:01:29 2008 +0000 @@ -26,7 +26,7 @@ gint dnd_file_drag_types_count = 2; GtkTargetEntry dnd_file_drop_types[] = { - { "application/x-gqview-collection-member", 0, TARGET_APP_COLLECTION_MEMBER }, + { TARGET_APP_COLLECTION_MEMBER_STRING, 0, TARGET_APP_COLLECTION_MEMBER }, { "text/uri-list", 0, TARGET_URI_LIST } }; gint dnd_file_drop_types_count = 2; diff -r d5a3bcc6a694 -r 2ebd0d9145cf src/dnd.h --- a/src/dnd.h Fri Apr 11 19:43:36 2008 +0000 +++ b/src/dnd.h Fri Apr 11 20:01:29 2008 +0000 @@ -13,6 +13,7 @@ #ifndef DND_H #define DND_H +#define TARGET_APP_COLLECTION_MEMBER_STRING "application/x-" GQ_APPNAME_LC "-collection-member" enum { TARGET_APP_COLLECTION_MEMBER, diff -r d5a3bcc6a694 -r 2ebd0d9145cf src/dupe.c --- a/src/dupe.c Fri Apr 11 19:43:36 2008 +0000 +++ b/src/dupe.c Fri Apr 11 20:01:29 2008 +0000 @@ -3361,7 +3361,7 @@ static gint n_dupe_drag_types = 2; static GtkTargetEntry dupe_drop_types[] = { - { "application/x-gqview-collection-member", 0, TARGET_APP_COLLECTION_MEMBER }, + { TARGET_APP_COLLECTION_MEMBER_STRING, 0, TARGET_APP_COLLECTION_MEMBER }, { "text/uri-list", 0, TARGET_URI_LIST } }; static gint n_dupe_drop_types = 2;