gtkplacesidebar: remove obsolete drop state

We didn't use those for some time now.
This commit is contained in:
Carlos Soriano 2015-06-11 18:55:24 +02:00
parent 91e1e80862
commit a9b698b265

View File

@ -106,22 +106,14 @@
#define TIMEOUT_EXPAND 500 #define TIMEOUT_EXPAND 500
/* These are used when a destination-side DND operation is taking place. /* These are used when a destination-side DND operation is taking place.
* Normally, when a file is being hovered directly over a bookmark, * Normally, when a common drag action is taking place, the state will be
* well be in DROP_STATE_NORMAL. * DROP_STATE_NEW_BOOKMARK_ARMED, however, if the client of GtkPlacesSidebar
* * wants to show hints about the valid targets, we sill set it as
* But when a file is being hovered between bookmarks, this means the user * DROP_STATE_NEW_BOOKMARK_ARMED_PERMANENT, so the sidebar will show drop hints
* may want to create a new bookmark for that file between those bookmarks. * until the client says otherwise
* In that case, the drop state will be *not* DROP_STATE_NORMAL.
*
* When the drop state is FADING_OUT, it means that the user is hovering
* directly over an existing bookmark and an immediate drop will cause the
* file being dragged to be dropped on the bookmark, instead of causing
* a new bookmark to be created.
*/ */
typedef enum { typedef enum {
DROP_STATE_NORMAL, DROP_STATE_NORMAL,
DROP_STATE_NEW_BOOKMARK_FADING_IN,
DROP_STATE_NEW_BOOKMARK_FADING_OUT,
DROP_STATE_NEW_BOOKMARK_ARMED, DROP_STATE_NEW_BOOKMARK_ARMED,
DROP_STATE_NEW_BOOKMARK_ARMED_PERMANENT, DROP_STATE_NEW_BOOKMARK_ARMED_PERMANENT,
} DropState; } DropState;