clang-tidy: modernize-macro-to-enum
[geeqie.git] / src / ui-pathsel.cc
index 1fdf999..79dfde4 100644 (file)
 #include "utilops.h"
 
 
-#define DEST_WIDTH 250
-#define DEST_HEIGHT 210
+enum {
+       DEST_WIDTH = 250,
+       DEST_HEIGHT = 210
+};
 
-#define RENAME_PRESS_DELAY 333 /* 1/3 second, to allow double clicks */
+enum {
+       RENAME_PRESS_DELAY = 333        /* 1/3 second, to allow double clicks */
+};
 
 #define PATH_SEL_USE_HEADINGS FALSE
 
@@ -319,7 +323,9 @@ static GtkTargetEntry dest_drag_types[] = {
        { const_cast<gchar *>("text/uri-list"), 0, TARGET_URI_LIST },
        { const_cast<gchar *>("text/plain"),    0, TARGET_TEXT_PLAIN }
 };
-#define dest_drag_types_n 2
+enum {
+       dest_drag_types_n = 2
+};
 
 
 static void dest_dnd_set_data(GtkWidget *view, GdkDragContext *,