Workaround compiler warnings and gtk+ deprecations
[terminatorX.git] / src / tX_panel.cc
index a8b9bb14b3d010c7632501f2fa516310f611db7f..348c17f1f287425c7988ddd0a38a03da99c916d4 100644 (file)
@@ -28,7 +28,9 @@
 #define WID_DYN TRUE, TRUE, 0
 #define WID_FIX FALSE, FALSE, 0
 
-static const GtkTargetEntry entries[] = { { "GTK_LIST_BOX_ROW", GTK_TARGET_SAME_APP, 0 } };
+// workaround GtkEntry not having target set to const for some reason
+static gchar entries_type[] = "GTK_LIST_BOX_ROW"; 
+static const GtkTargetEntry entries[] = { { entries_type, GTK_TARGET_SAME_APP, 0 } };
 
 static vtt_fx *dragged_effect = NULL;
 static GtkWidget *dragged_list_box = NULL;